Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinsC1O committed Oct 6, 2024
1 parent dfb6883 commit 870c4db
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions onchain/src/systems/game_actions.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 870c4db

Please sign in to comment.