Backend "view" - evelinawahlstrom/game-project-client GitHub Wiki

MODELS https://www.vertabelo.com/blog/a-database-model-for-simple-board-games/

https://www.vertabelo.com/blog/tutorial-how-to-develop-a-simple-tic-tac-toe-game-with-spring-boot-and-angularjs/#the-move-table

A. SIMPLE VERSION - IMPLEMENT IN OUR GAME

  1. User
  • name (unique:
  • password
  • game_id
  1. Game (lobby)
  • id
  • max nr of players
  • start/endtime
  • player start_id
  • result
  1. Moves
  • Pieces (X, O)
  • Row
  • Column

B. COMPLEX VERSION

  1. Player/user
  • name: unique
  • password
  1. Participant
  • id
  • player_id
  • game_id
  • score
  1. Game
  • start
  • id
  • max nr players
  • player started id
  • move/game time limit
  • result_id
  1. MOVE
  • id
  • game_id
  • piece_id
  • participant_id
  • move type id
  • move order
  • move notation (?)
  1. Result - storing all possible endings of a game (win on either side, draw...)
  • id
  • description
  1. LOBBY
  • Store games, see if full or not (?)

Implement stream (or socket.io) on every endpoint (?)