Commit d562af4c authored by Arnaud Chevalier's avatar Arnaud Chevalier

Read Me precisions

parent 091547d8
......@@ -17,10 +17,14 @@ env FLASK_ENV=development FLASK_APP=server/server.py python3 -m flask run -p 500
```
# Usage
Connect to the webpage, choose the game mode :
- a tournament has a blind raising over time, the game starts automatically when enough players are connected and finishes when one player wins all the chips.
- a cash game has a constant blind, players can join the game along time, when they no more have money, they are replaced by waiting players.
Connect to the webpage, choose the game mode (a tournament has a blind raising over time, contrary to the cash game) and the number of players and generate a game ID.
Select the number of players and generate a game ID.
Share the game ID with your friends, enter your name and the game ID, and join the game !
If you lack friends, use different browsers (you are identified by cookies, multiple tabs will not work).
Joining the game by copying the URL will set you as spectator.
# Fonctioning
......@@ -36,12 +40,12 @@ Detailed file description:
- `server.py`: The Flask-SocketIO server
- `game.py`: The `Game` Class, consisting of a poker `Table` and a list of connected sockets
- `table/`
- `table.py`: main class representing a Poker table
- `table.py`: main class representing a Poker table and the game engine core
- `tableTimer.py`: timer for automatic actions on the table: after a player timeout or the end of a hand.
- `deck.py`: the `Deck` of `Cards`
- `cards.py`: the `Card` object
- `player/`
- `player.py`: a `Player` in the `Table`
- `player.py`: a `Player` at a `Table`
- `hand.py`: describe the poker hands formed by the `Cards`.
- `front/`
- `static/`: the static CCS/JS/Images files
......
......@@ -18,9 +18,7 @@ function catchUp(tableState) {
function updateHistory(tableState) {
var state = tableState;
var txt = '';
console.log(players);
if (players.length > 0) {
console.log("test")
for (var i = 0; i < state['players'].length; i++) {
if (players[i]['state'] !== state['players'][i]['state']) {
if (state['players'][i]['state'].length > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment