Ramesh-vani commited on
Commit
7d5e3bf
·
verified ·
1 Parent(s): 8ef56f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -139,9 +139,9 @@ async def exe(websocket,connected):
139
  # Spectator watches an existing game.
140
  await watch(websocket, event["watch"]) #Todo
141
 
142
- else:
143
- # First player starts a new game.
144
- await start(websocket, message)
145
  except RuntimeError as exc:
146
  # Send an "error" event if the move was illegal.
147
  await error(websocket, str(exc))
 
139
  # Spectator watches an existing game.
140
  await watch(websocket, event["watch"]) #Todo
141
 
142
+ else:
143
+ # First player starts a new game.
144
+ await start(websocket, message)
145
  except RuntimeError as exc:
146
  # Send an "error" event if the move was illegal.
147
  await error(websocket, str(exc))