Sha256: a98feb4f32b9c0bad7de7777642b92dbc7ccdb132d645d96985938351d79b295

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

# tictactoe_game.rb

require "game-tictactoe-alu4078"

if __FILE__ == $0
   if ARGV.size > 0 and ARGV[0] == "-d"
      game = TicTacToe::Game.new TicTacToe::HumanPlayer,
	    TicTacToe::DumbPlayer
   else
      game = TicTacToe::Game.new TicTacToe::HumanPlayer,
	    TicTacToe::SmartPlayer
   end
   game.play
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
game-tictactoe-alu4078-0.0.1 bin/tictactoe_game.rb