update game logic and UI components for move selection and reveal phases; remove Lobby component

This commit is contained in:
averel10
2025-11-21 18:18:59 +01:00
parent 2d7dd6ccdb
commit 06176e74f2
8 changed files with 391 additions and 416 deletions

View File

@@ -55,7 +55,6 @@ export default function GameList({
}
setGames(gameDetails);
// Check which games the user is participating in
if (account) {
const userGames = new Set<number>();
@@ -85,7 +84,7 @@ export default function GameList({
return () => {
if (interval) clearInterval(interval);
};
}, [contract, web3]);
}, [contract, web3, account]);
// Join an existing game
const handleJoinGame = async (gameId: number, bet: string) => {