diff --git a/onchain/src/systems/game_actions.cairo b/onchain/src/systems/game_actions.cairo index 9cf85ba..e4f2750 100644 --- a/onchain/src/systems/game_actions.cairo +++ b/onchain/src/systems/game_actions.cairo @@ -260,6 +260,9 @@ pub mod GameActions { }, _ => panic!("Invalid number of players"), }; + + // Update the game state in the world + world.write_model(@game); } fn move(ref self: ContractState, pos: felt252, color: u8) {