Make guessing phase while hearing
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 1m55s
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 1m55s
This commit is contained in:
@ -26,7 +26,7 @@ const initializeGameState = (roomId) => {
|
||||
roundStartTime: null,
|
||||
phaseTimeLimit: {
|
||||
composing: 30,
|
||||
guessing: 30
|
||||
guessing: 10
|
||||
},
|
||||
lastFrequency: 440,
|
||||
};
|
||||
@ -55,11 +55,14 @@ const startNewRound = async (roomId) => {
|
||||
|
||||
gameState.currentComposer = determineNextComposer(roomId, gameState, users);
|
||||
|
||||
const success = await selectSongAndOptions(gameState);
|
||||
if (!success) return false;
|
||||
|
||||
users.forEach(user => {
|
||||
gameState.roles[user.id] = user.id === gameState.currentComposer ? 'composer' : 'guesser';
|
||||
});
|
||||
|
||||
return await selectSongAndOptions(gameState);
|
||||
return true;
|
||||
};
|
||||
|
||||
const determineNextComposer = (roomId, gameState, users) => {
|
||||
|
Reference in New Issue
Block a user