Module: TicTacToe

Defined in:
lib/tic_tac_toe/game.rb,
lib/tic_tac_toe/view.rb,
lib/tic_tac_toe/board.rb,
lib/tic_tac_toe/human.rb,
lib/tic_tac_toe/input.rb,
lib/tic_tac_toe/player.rb,
lib/tic_tac_toe/computer.rb,
lib/tic_tac_toe/constants.rb,
lib/tic_tac_toe/board_state.rb,
lib/tic_tac_toe/tic_tac_toe.rb

Defined Under Namespace

Modules: Constants, Input, View Classes: Board, BoardState, Computer, Game, Human, InvalidInputException, Player

Class Method Summary collapse

Class Method Details

.playObject



4
5
6
7
8
9
10
# File 'lib/tic_tac_toe/tic_tac_toe.rb', line 4

def play
	g = Game.new.play
	while replay?
		g = reset_game? ? g.reset.play : Game.new.play
	end
	puts "bye!"
end