Skip to content

Commit

Permalink
add: GameState.last_move for perform fn
Browse files Browse the repository at this point in the history
  • Loading branch information
YoEnte committed Jan 20, 2025
1 parent 7e11430 commit 0c440ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin/move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl Move {
if result.is_ok() {
let mut player = state.clone_current_player();
player.last_move = Some(self.clone());
state.last_move = Some(self.clone());
state.update_player(player);
}
result
Expand Down

0 comments on commit 0c440ac

Please sign in to comment.