class Chess::RandomPlayer

Defined in:

players/random.cr

Constructors

Instance Method Summary

Instance methods inherited from class Chess::Player

play(board : Board, pieces : Array(Piece)) : Tuple(Piece, Position) play, yield? : Bool yield?

Constructor Detail

def self.new(color : Color) #

[View source]

Instance Method Detail

def play(board : Board, pieces : Array(Piece)) : Tuple(Piece, Position) #

[View source]
def yield? : Bool #

[View source]