Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 847 Bytes

API.md

File metadata and controls

36 lines (31 loc) · 847 Bytes

Game API

/api/game?player=1

{ "hand": {"cards": [ {"title": "refactor", "id": 9}, {"title": "predict", "id": 10} ] }, "inPlay": {"cards": []}, "opponentInPlay": {"cards": []}, "score": { "name": "Ted", "passingTests": 0, "riskLevel": 0 }, "opponentScore": {"passingTests": 0, "riskLevel": 0} }

Game:

  • 2 Players, each player has
    • Passing Tests (Score)
    • Risk Level
    • Cards in Hand
    • Cards in Play
  • Playing Card Deck
  • Test Results Deck
  1. Start Game: creates deck, players fill their hand
    1. Results in: Playing deck initialized with cards
    2. Each of 2 players draw 5 cards
      • Player 1 has 5 cards
      • Player 2 has 5 cards
      • Deck has 53 cards remaining