Sha256: d1b2a455a997c0e4665f5e856ba9995a3dbf9847920481e063974b5a3a3373cf
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
module TicTacToe class Player def initialize( mark ) @mark = mark # "X" or "O" or " " end attr_reader :mark def move( board ) raise NotImplementedError, "Player subclasses must define move()." end def finish( final_board ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game-tictactoe-alu4078-0.0.2 | lib/game_tictactoe_alu4078/player.rb |
game-tictactoe-alu4078-0.0.1 | lib/game_tictactoe_alu4078/player.rb |