This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
OlderNewer