You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
433 B

import ./chess
# Testing
var game = chess.init_game()
game.checked_move(field_to_ind("e2"),field_to_ind("e4"),Color.White)
game.checked_move(field_to_ind("e7"),field_to_ind("e6"),Color.Black)
game.checked_move(field_to_ind("g2"),field_to_ind("g4"),Color.White)
game.checked_move(field_to_ind("d8"),field_to_ind("h4"),Color.Black)
game.echo_board(Color.White)
echo game.is_checkmate(Color.White)
echo game.is_stalemate(Color.White)