Created
January 16, 2022 07:39
-
-
Save FermiDirak/c8c8b57a001f456eb757d591b2eb2322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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