From 870c4dbf756a7508a6ef4ef9a67b3ca09ef890eb Mon Sep 17 00:00:00 2001 From: collinsC10 Date: Sun, 6 Oct 2024 19:13:12 +0100 Subject: [PATCH] update --- onchain/src/systems/game_actions.cairo | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/onchain/src/systems/game_actions.cairo b/onchain/src/systems/game_actions.cairo index 36d88e7..10e6ea7 100644 --- a/onchain/src/systems/game_actions.cairo +++ b/onchain/src/systems/game_actions.cairo @@ -142,12 +142,7 @@ mod GameActions { game.player_green, game.player_yellow, game.player_blue, game.player_red ]; - // let players_length: usize = players.len(); - - // for(let player_in_game = 0, player_in_game < players_length, player_in_game++){ - // assert(player_in_game != player_username, 'Player already in game'); - // } - + //iterating through the player array checking if the player is already part of the game for player_in_game in players.iter() { assert(*player_in_game != player_username, 'Player already in game'); }