Skip to content

Instantly share code, notes, and snippets.

View SudhagarS's full-sized avatar

Sudhagar SudhagarS

View GitHub Profile
@SudhagarS
SudhagarS / tictactoe.py
Created October 23, 2012 22:17
Tic Tac Toe AI implemented in Python using MiniMax algorithm.
def isWin(board):
"""
GIven a board checks if it is in a winning state.
Arguments:
board: a list containing X,O or -.
Return Value:
True if board in winning state. Else False
"""
1. Go to your sublime home directory, then Packages/SublimeREPL/config/
2. Open 'Ruby' directory in config, make the changes in this PR to pry_repl.rb
https://github.com/wuub/SublimeREPL/pull/372/files
3. Run 'which ruby' in your terminal, and copy the path it returns.
eg. /Users/sudhagarsachin/.rbenv/shims/ruby
4. In Main.sublime-menu, line 33, the "osx" to this JSON.
"osx": [
"/Users/sudhagarsachin/.rbenv/shims/ruby", // replace this with your path
"${packages}/SublimeREPL/config/Ruby/pry_repl.rb",
"$editor"