Last game standing game. Need to make fast decisions, whether to stay or bail. Since playing VS people, it really is a mental war.
Players place a bet at the start of the game.
On the server side, a random number is generated that determines
the length of the game, 0[s] to 45[s].
Each player decides when to cash out, and that exited last, wins. If no player exited and the game ended, all players lose.
- Each game length varies, players don't know how long is the current game. The last player to leave before the round finishes, wins.
- Each game must contain at least 2 players, since this is a PVP game. Once 2 players are ready, the countdown starts and every player may join until the game starts.
- The platform opens rooms with a fixed bet price, each player an choose the room the fits him the most.
- The player who wins the game, earns his entry fee times the amount of players who have played. But if no player exits before the clock stops, the house wins.
axumfor the web serverwebsocketsfor quick communicationpostgresfor storing game datareactfor the frontend
Each round we'll sample solana blockchain and get the latest block hash.
We'll convert this blockhash to a number between 0 and 45.
We'll then use this number to determine the length of the game.
We'll encrypt this data and store it on the blockchain, when the game ends we'll publish the decryption key.