Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ import signal
|
|
| 9 |
import websockets
|
| 10 |
|
| 11 |
from connect4 import PLAYER1, PLAYER2, Connect4
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
JOIN = {}
|
|
@@ -91,7 +92,7 @@ async def start(websocket):
|
|
| 91 |
"""
|
| 92 |
# Initialize a Connect Four game, the set of WebSocket connections
|
| 93 |
# receiving moves from this game, and secret access tokens.
|
| 94 |
-
game =
|
| 95 |
connected = {websocket}
|
| 96 |
|
| 97 |
join_key = secrets.token_urlsafe(12)
|
|
|
|
| 9 |
import websockets
|
| 10 |
|
| 11 |
from connect4 import PLAYER1, PLAYER2, Connect4
|
| 12 |
+
from user import User
|
| 13 |
|
| 14 |
|
| 15 |
JOIN = {}
|
|
|
|
| 92 |
"""
|
| 93 |
# Initialize a Connect Four game, the set of WebSocket connections
|
| 94 |
# receiving moves from this game, and secret access tokens.
|
| 95 |
+
game = User()
|
| 96 |
connected = {websocket}
|
| 97 |
|
| 98 |
join_key = secrets.token_urlsafe(12)
|