Method: Chess::CGame#current

Defined in:
ext/chess/chess.c

#currentBoard Also known as: board

Returns the current Board of the Game (the current chess position of the game).

Returns:



228
229
230
231
232
233
234
# File 'ext/chess/chess.c', line 228

VALUE
game_current_board (VALUE self)
{
  Game *g;
  Data_Get_Struct (self, Game, g);
  return game_boards (self, INT2FIX (g->current-1));
}