mastermind/notes.txt

32 lines
2.3 KiB
Plaintext

In this directory, you will see a REST API developed by Java Spring boot and a react web application.
this is a game and single player has been already developed. However, multiplayer is missing.
In the same logic, I would like to develope multiplayer version with you.
Requirements:
- There is no db connection so everybody would be create a new game.
- when multiplayer page lists all available games.
- each game has two status (waiting, playing, closed)
- each game has start with two player (not more and not less)
- multiplayer page has also create new game button.
- when a player click to new play, a modal appears and start with the following fields
Game Name: Unique
Number Limit: 3-10 digits
Game Type: auto guesstures, player guesstures, time challenge
- game waits while two players are online
- when one of player leaves the game, the game is over.
auto guesstures: two different guess numbers are randomly created by the game for the players. each turns run together (first guess waits the other). after the turn each youser see his own guess resut and rival's resutl.
both scors will show, when a player find the number
Number selection rule will be the same as single player (each number will be used one time)
player guesstures: before start this game each players set a rival's guesstures number suitable for number selection rule. the rest of the game is the same with auto guesstures type.
time challenge: the game creates a number for the both players. turns go forward independently. players cannot see the rival's guess.
There is a time counter in this game. the game continue until both user find the number. the best score win the game.
Please create a score calculation rule depening on time and turn count.
Please update api service and web application.
Finally please create a summary note in the current directory
I increased the property like that multiplayer.player-timeout-ms=900000.
If it is possible, please update the code according to the following Requirements
- Until play do not click aboard button, game continues.
- if players left the game in a reason, they can return their own game.
- as far as I understand we recognise a player from its token. If they loss their token, game is over after 15 min.
- backend code is available in app directory
Finally please update the summary note in the current directory