Sha256: e6814d24008bc51258839c3d0cea4c4de78a0df5a91855a3994449ce1c1e16ab
Contents?: true
Size: 1.56 KB
Versions: 2
Compression:
Stored size: 1.56 KB
Contents
/* * chess - a fast library to play chess in Ruby * * Copyright (c) 2011-2017, Enrico Pilotto <epilotto@gmx.com> * This code is under LICENSE LGPLv3 */ #include "ruby.h" #include "game.h" // Game VALUE game_alloc (VALUE class); VALUE game_set_fen (VALUE self, VALUE fen); VALUE game_move (VALUE self, VALUE rb_piece, VALUE rb_disambiguating, VALUE rb_to_coord, VALUE rb_promote_in); VALUE game_move2 (VALUE self, VALUE rb_from, VALUE rb_to, VALUE rb_promote_in); VALUE game_move3 (VALUE self, VALUE rb_from, VALUE rb_to, VALUE rb_promote_in); VALUE game_resign (VALUE self, VALUE color); VALUE game_draw (VALUE self); VALUE game_boards (VALUE self, VALUE index); VALUE game_current_board (VALUE self); VALUE game_moves (VALUE self); VALUE game_coord_moves (VALUE self); VALUE game_threefold_repetition (VALUE self); VALUE game_result (VALUE self); VALUE game_size (VALUE self); VALUE game_each (VALUE self); VALUE game_rollback (VALUE self); VALUE game_to_s (VALUE self); // Board VALUE board_placement (VALUE self); VALUE board_get_piece (VALUE self, VALUE square); VALUE board_king_in_check (VALUE self); VALUE board_king_in_checkmate (VALUE self); VALUE board_stalemate (VALUE self); VALUE board_insufficient_material (VALUE self); VALUE board_only_kings (VALUE self); VALUE board_fifty_move_rule (VALUE self); VALUE board_active_color (VALUE self); VALUE board_halfmove_clock (VALUE self); VALUE board_fullmove_number (VALUE self); VALUE board_generate_moves (VALUE self, VALUE square); VALUE board_to_fen (VALUE self); VALUE board_to_s (VALUE self); // INIT void Init_chess ();
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chess-0.2.1 | ext/chess.h |
chess-0.2.0 | ext/chess.h |