Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def confirm_player(data):
socketio.emit('Role_Confirmation_Count_Updated', room=game_code, include_self=True)


# gets called when all players in the game have confirmed their roles
@socketio.on('Confirmation_Finished')
def confirm_player(data):
game_code = data['gameCode']
Expand All @@ -80,6 +81,7 @@ def confirm_player(data):
socketio.emit('Begin_Player_Turn', data, room=game_code, include_self=True)


# gets called when the timer runs out for the current player's turn
@socketio.on('Player_Turn_Finish')
def player_turn_finish(data):
game_code = data['gameCode']
Expand Down
Loading