backend/src/main/java/com/coolioasjulio/influence/web/Lobby.java
/**
     * Start the game on a new thread. This will no-op if there are not enough players, or if the game has already started.
     *
     * @return True if the game was started, false otherwise.
     */
Start the game on a new thread. This will no-op if there are not enough players, or if the game has already started.
@return True if the game was started, false otherwise.
Start the game on a new thread . This will no - op if there are not enough players or if the game has already started . @return True if the game was started false otherwise .
public boolean startGameAsync() {
        synchronized (playersLock) {
            if (players.size() < Game.MIN_PLAYERS || started.getAndSet(true)) return false;
            gameThread = new Thread(() -> startGame(false));
            gameThread.start();
            return true;
        }
    }
public boolean startGameAsync ( ) { synchronized ( playersLock ) { if ( players . size ( ) < Game . MIN_PLAYERS || started . getAndSet ( true ) ) return false ; gameThread = new Thread ( ( ) -> startGame ( false ) ) ; gameThread . start ( ) ; return true ; } }
Start the game on a new thread.
Start the game on a new thread .
// If there aren't enough players or the game has already started, no-op. // Start a new game on a new thread