Closed doper1 closed 1 day ago
Wrote rebuy function, currently writing tests
One test remained to fix then go to the next task
Add rebuy function in inGame route V Add to exit functionalty of adding the game money into money V Add validation for joining with 0 money V (Should be impl with DB) Add feature to put players with 0 game money as folded until they rebuy V Add rebuy to the inGame help menu V Add check in init round for if a SB or BB are folded (has no money) skip them. if only one player got money- Return a winner message, summery message and end the game
All is remains is to finish writing endGame and validating the code with unit tests. then commit and merge: feat: add rebuy functionality. solves #70
endGame function is written. remains:
Done. When DB is integrated players will be deleted from the game upon exit but not from the DB. This because we need to keep track of their money (Player.money)
Currently there is no continuity between session. for each player there a global money amount (money) and money amount for the game (game_money). We need to add support for using the total money account and updating it by game results
Requirements:
The whole design should be minimal and with thinking about DB integration