Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
chess
episode-05
Chess
Bishop
Board
CLIPresenter
Color
FinishDetector
Game
King
Knight
OutOfBounds
Pawn
Piece
Player
Position
Presenter
Queen
RandomPlayer
Rook
ImpossibleMove
Generated using Crystal 1.14.0
2024-11-26 10:44:44 UTC
class
Chess::
Game
Chess::Game
Reference
Object
Defined in:
game.cr
Constructors
.new
(presenter : Presenter, player_white : Player, player_black : Player)
Instance Method Summary
#player_black
: Player
#player_white
: Player
#start
#turn
: Color
Constructor Detail
def self.
new
(presenter :
Presenter
, player_white :
Player
, player_black :
Player
)
#
[
View source
]
Instance Method Detail
def
player_black
:
Player
#
[
View source
]
def
player_white
:
Player
#
[
View source
]
def
start
#
[
View source
]
def
turn
:
Color
#
[
View source
]