Skip to content

Instantly share code, notes, and snippets.

@FermiDirak
Created January 16, 2022 07:39
Show Gist options
  • Save FermiDirak/c8c8b57a001f456eb757d591b2eb2322 to your computer and use it in GitHub Desktop.
Save FermiDirak/c8c8b57a001f456eb757d591b2eb2322 to your computer and use it in GitHub Desktop.
// mutations are explicitly opt in
let mut chess_game = Chess::starting_board();
let player_move = Move { start: ('G', 1), end: ('F', 3) };
chess_game.apply_move(player_move);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment