Commit Graph

9 Commits

Author SHA1 Message Date
averel10
7f1143eb22 Implement timeout handling and commit resolution in Commit and Reveal components
- Added state management for opponent's move and commit time left in Commit component.
- Implemented automatic checks for opponent's move and commit timeout.
- Introduced timeout resolution functionality allowing players to claim victory if the opponent fails to commit in time.
- Updated UI to display timeout results and allow players to resolve timeouts.
- Enhanced Reveal component with timeout checks and resolution logic.
- Added necessary contract methods in config.json for commit time left and timeout resolution.
2025-11-22 10:58:49 +01:00
averel10
d6ea65f0f7 Display ETH winnings based on game outcome in Reveal component 2025-11-22 09:50:04 +01:00
averel10
197d9e6e22 Refactor Clash component to use GameModal for game interactions, remove Hello World page, and implement toast notifications for error handling 2025-11-22 09:44:36 +01:00
averel10
06176e74f2 update game logic and UI components for move selection and reveal phases; remove Lobby component 2025-11-21 18:18:59 +01:00
SamKry
322945f30c add getOutcome in reveal phase 2025-11-21 17:26:40 +01:00
SamKry
f113ed6042 use custom button component to rid all the css 2025-11-18 19:32:36 +01:00
SamKry
011708c24e move state and functions to reveal component 2025-11-18 18:58:08 +01:00
SamKry
04f8e66204 move state and functions to commit component 2025-11-18 18:55:38 +01:00
SamKry
4ec03d7cdb init contract frontent 2025-11-18 17:58:57 +01:00