Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created January 4, 2014 22:27
Show Gist options
  • Save tarynsauer/8261565 to your computer and use it in GitHub Desktop.
Save tarynsauer/8261565 to your computer and use it in GitHub Desktop.
get '/' do
session.clear
erb :index
end
get '/play' do
redirect '/' if session[:player_one_type].nil?
player_first_move_check
game = get_game
@board = game.board
@message = game.get_message(session[:player_first_move])
redirect to '/play' if game.computer_move_check(@board, session[:current_board])
erb :play
end
get '/difficulty' do
erb :difficulty
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment