landenf / Settlers-of-Catan

Multiplayer Online version of Settlers of Catan
https://catan-4dea2.web.app
2 stars 0 forks source link

Types Folder and Preliminary Types #36

Open SirFatredVIII opened 4 months ago

SirFatredVIII commented 4 months ago

To facilitate communication between the frontend and backend, the two should be able to communicate with each other with a shared language. TypeScript types will be that language -- the backend can implement methods for these types and the frontend can render these types. The following types should be considered for completing our R1 goals:

  1. Player
  2. GameState
  3. GameBoard
  4. DevelopmentCard

Useful link for developing solution: https://stackoverflow.com/questions/65045106/share-types-between-client-and-server