Sha256: c161932a3c7d83f59f9a4d37c5c7f680cb2b963251914e604bcfcf6777f2b96e
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
module TresRaya 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 |
---|---|
tres-raya-0.0.3 | lib/tres_raya/player.rb |
tres-raya-0.0.2 | lib/tres_raya/player.rb |