Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 6be7574b authored by Arnaud Chevalier's avatar Arnaud Chevalier

folder oraganization

parent de705bf3
import requests
def getState:
return
\ No newline at end of file
import json
from uuid import uuid4
from enum import Enum
from hand import Hand
from player.hand import Hand
class PlayerState(Enum):
PLAYING = 0
......
import time
from flask import Flask, render_template, request, redirect, url_for, send_from_directory
from flask_socketio import SocketIO, emit
from table import Table, PlayingMode
from flask_socketio import SocketIO
from table.table import Table, PlayingMode
from player.player import Player
from game import Game
app = Flask(__name__, static_url_path='/front/')
from server.game import Game
app = Flask(__name__, static_url_path='/front/', static_folder='../front/static', template_folder='../front/templates/')
socketio = SocketIO(app)
games = {}
......@@ -83,7 +83,7 @@ def origin():
def homePage():
message = request.args.get('message')
print(message)
return render_template('/homePage.html', message=message)
return render_template('homePage.html', message=message)
@app.route("/game", methods=["POST"])
......@@ -140,7 +140,7 @@ def viewGame():
@app.route('/front/<path:path>')
def send_js(path):
return send_from_directory('front', path)
return send_from_directory('../front', path)
########################################################################
# WEBSOCKET SERVER #
......
# A single deck of cards, shuffled when instanciated.
#
import card
from table import card
import random
......
......@@ -15,11 +15,10 @@ from math import exp
from uuid import uuid4
import threading
from card import Card
from hand import Hand
from deck import Deck
from player.player import Player, PlayerState
from tableTimer import TableTimer
from player.hand import Hand
from table.deck import Deck
from player.player import PlayerState
from table.tableTimer import TableTimer
import json
from enum import Enum
......
import table
from table import table
import player.player
t = table.Table()
......
import table
from table import table
import player.player
t = table.Table()
......
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