./mrps-game serve --dsn 'host=localhost user=your_username password=your_password dbname=mrps_game sslmode=disable TimeZone=Asia/Shanghai'
- Login the system and logout
- Transfer imaginary funds in and out of your account.
- Query for other players
- Challenge other players to a match and associate a choice (rock, paper or scissor) and a bet with it
- View your pending challenges and respond to them with decline or accepting. Accepting requires a choice of rock, paper, scissor
- Upon accepting a challenge, the match is resolved and the betted funds are transferred from the loser to the winner.
Extra tasks:
- Users require registration and this is kept in some kind of database
- All transactions are logged in a database
- Query for personal transactions
- AI players
- Users are somehow notified if they win or lose
- Statistics are generated and can be viewed somehow
- Available choices should be configurable (add more than rock paper scissor)