Method: Chess::CGame#coord_moves
- Defined in:
- ext/chess/chess.c
#coord_moves ⇒ Array<String>
258 259 260 261 262 263 264 265 266 267 |
# File 'ext/chess/chess.c', line 258 VALUE game_coord_moves (VALUE self) { Game *g; Data_Get_Struct (self, Game, g); VALUE moves = rb_ary_new (); for (int i = 0; i < g->current; i++) rb_ary_push (moves, rb_str_new2 (g->coord_moves[i])); return moves; } |