Class
Piece
In:
lib/libttc.rb
Parent:
Object
Each piece on the board is an object
Methods
capture
move_to
name
new
to_s
to_str
Attributes
captured
[RW]
colour
[R]
contains
[RW]
position
[RW]
Public Class methods
new
(number, position, colour)
Public Instance methods
capture
(other_piece)
Caputre another piece
move_to
(new_position)
name
()
to_s
()
to_str
()
[Validate]