Commit Graph

29 Commits

Author SHA1 Message Date
smaubio
cff227ac68 draft of new mode 2025-11-28 16:45:49 +01:00
smaubio
c3e3308cce Merge pull request #14 from averel10/player-nicknames
Add player nickname feature to game registration
2025-11-28 15:38:19 +01:00
smaubio
a0791d599c Add player nickname feature to game registration 2025-11-28 15:04:53 +01:00
smaubio
39fd72e401 Add current balance display for selected MetaMask account 2025-11-28 14:57:22 +01:00
averel10
29547bc7ee Implement session storage cleanup for expired game data and add timestamp tracking 2025-11-22 11:04:28 +01:00
averel10
d0d2cd1cac Update game contract address in config and adjust timeout durations in Game.sol 2025-11-22 11:02:32 +01:00
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
3bd61490f1 update contract addresses in config files and enhance player move commitment handling 2025-11-21 18:42:43 +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
averel10
2d7dd6ccdb replace Lobby with GameList and update phase handling in Clash component 2025-11-21 17:39:30 +01:00
SamKry
322945f30c add getOutcome in reveal phase 2025-11-21 17:26:40 +01:00
SamKry
a0ff3db60d add icon to home page 2025-11-18 20:51:22 +01:00
SamKry
031bb340d7 add icons 2025-11-18 20:20:51 +01:00
SamKry
f113ed6042 use custom button component to rid all the css 2025-11-18 19:32:36 +01:00
SamKry
a82037a698 move state and functions to lobby component 2025-11-18 19:01:49 +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
averel10
15bf0155bb added subpages for helloworld and clash, added game contract to config.json for usage in frontend 2025-11-14 22:49:06 +01:00
averel10
1637139118 docs: update README and config.json for production API_URL and deployment instructions 2025-11-11 22:38:27 +01:00
averel10
f10da70c48 feat: automate config.json copying and update dependencies
- Added a script (copy_config.js) to copy config.json from the root directory to the frontend's public directory before starting the development server, building, or starting the application.
- Updated package.json scripts to include the config copying step.
- Updated dependencies in package.json, including adding web3 and ensuring tailwindcss is included in devDependencies.
- Modified tsconfig.json to include a path for the config file.
- Added a new config.json file in the public directory with API_URL, CONTRACT_ADDRESS, and ABI details for the smart contract.
2025-11-11 21:48:56 +01:00
averel10
706007db7a fix: update image source paths in Home component and remove assetPrefix from Next.js config 2025-11-11 20:15:26 +01:00
averel10
7cf8e65486 fix: remove distDir from Next.js configuration 2025-11-11 20:06:48 +01:00
averel10
3b44333752 fix: update Next.js configuration for assetPrefix and distDir 2025-11-11 20:05:09 +01:00
averel10
b253a4038f fix: correct npm command formatting in GitHub Actions workflow and add basePath to Next.js config 2025-11-11 20:02:03 +01:00
averel10
8b20f95158 configure Next.js for static exports and add GitHub Pages deployment workflow 2025-11-11 19:54:55 +01:00
averel10
4d2802ee30 initilized react frontend 2025-11-11 18:34:20 +01:00