Sha256: 54e83858d36317234700f0290c3d213590ae401b04a643a19891c58e3624ee55
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
module TaTeTi 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ta-te-ti-0.0.2 | lib/ta_te_ti/player.rb |