Most of today was spent trying to refactor my game loop and cleaning up code in the process. My goal is to get to the point where I can gather the information contained in the cookies set by the Sinatra app (board state, whose turn it is to make a move, whether the opponent is a computer or human) and inject it into the game loop and expect whatever gets returned to indicate whether the UI should:
a) Continue playing
b) Announce winner
c) Announce tie
d) Display error
It looks like I need to make my game take commands from the UI.
…
I just accidentally discovered how to move through a file more quickly in VIM. By holding SHIFT and hitting the { or } keys I can move the cursor from paragraph to paragraph. Look at me navigate this document! Mmmm, fast!
…