Skip to content

JONA-X/poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Online poker: Texas Hold'em

First Meeting

  • We make 8 constant slots for the players. If there are less than 8 players, the slots will be empty.
  • Tasks: Leon: databases and backend, Niklas: backend, Jona: frontend

REST API

JSON code:

{
  "roles": {
    "bigBlind": "idxx",
    "smallBlind": "idyy",
    "activePlayer": "idzz"
  },
  "players": [
    {
      "id": "idxx",
      "name": "Leon", 
      "money": -42,
      "setThisRound": 250
    },
    {
      "id": "idyy",
      "name": "Niklas", 
      "money": -42,
      "setThisRound": 250
    },
    {
      "id": "idzz",
      "name": "Leon", 
      "money": -42,
      "setThisRound": 250
    },
    {
      "id": "4",
      "name": "Leon", 
      "money": -42,
      "setThisRound": 250
    },
    {
      "id": "5",
      "name": "Leon", 
      "money": -42,
      "setThisRound": 250
    },
    {
      "id": "6",
      "name": "Leon", 
      "money": -42,
      "setThisRound": 250
    }
  ],
  "card1": {
    "color": "P",
    "card": 7
  },
  "card2": {
    "color": "H",
    "card": 36
  },
  "card3": {
    "color": "C",
    "card": 25
  },
  "card4": {
    "color": "null",
    "card": 0
  },
  "card5": {
    "color": "null",
    "card": 0
  }
}

Next steps / milestones

Backend

  • Define database structure. Create ERM with yEd
  • Use MVC: Start with controller in PHP for API
  • Implement database object classes
  • Think again about game logic... Next steps will be discussed then

Frontend

  • Make HTML & CSS prototype
  • AJAX: load JSON and update poker table

Organization

  • Jona: Create database and send others credentials

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published