Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.05 KB

File metadata and controls

22 lines (18 loc) · 1.05 KB

Here is a simple React App Game "GAME IN DOTS"

Live DEMO: https://sphariab.github.io/Game-In-Dots/

I used React, MaterialUI, axios for server requests, create-react-app

For installing:

We have next gameplay:

  • user set game difficulty and name
  • press PLAY
  • at a specified time interval (in the delay field) a random square on the field is highlighted in blue
  • if the user managed to click on the square during this time - he turns green, the player gets a point and the field changes color to green
  • if not, the field turns red and the point goes to the computer
  • then a player or computer paints >50% of all possible squares in his color - he becomes the winner
  • an inscription appears between the control buttons and the playing field that the player (the name he entered) / computer won
  • button PLAY changes the caption to PLAY AGAIN
  • result of the game need to be send to server on this endpoint /winners in JSON with two fields winner and date both strings.
  • results in table should be auto update