src/josephus/Game.java
public boolean playTurn() {
        if (this.survivors == 1) {
            return false;
        }
        NodeInterface node = lastDead;
        int counterToKill = 1;
        boolean killedSomeone = false;

        do {
            if (counterToKill == pace) {
                if (node.getValue()) {
                    node.setValue(false);
                    survivors--;
                    killedSomeone = true;
                    lastDead = node;
                }
            }
            if (node.getValue()) {
                counterToKill++;
            }

            node = node.getNext();
        } while (!killedSomeone);

        return true;
    }
/**
     * @return Run a round of josephus algorithm and
     * returns if the game has to continue or not
     */
@return Run a round of josephus algorithm and
returns if the game has to continue or not
@return Run a round of josephus algorithm and returns if the game has to continue or not
public boolean playTurn() {
        if (this.survivors == 1) {
            return false;
        }
        NodeInterface node = lastDead;
        int counterToKill = 1;
        boolean killedSomeone = false;
        do {
            if (counterToKill == pace) {
                if (node.getValue()) {
                    node.setValue(false);
                    survivors--;
                    killedSomeone = true;
                    lastDead = node;
                }
            }
            if (node.getValue()) {
                counterToKill++;
            }
            node = node.getNext();
        } while (!killedSomeone);
        return true;
    }
public boolean playTurn ( ) { if ( this . survivors == 1 ) { return false ; } NodeInterface node = lastDead ; int counterToKill = 1 ; boolean killedSomeone = false ; do { if ( counterToKill == pace ) { if ( node . getValue ( ) ) { node . setValue ( false ) ; survivors -- ; killedSomeone = true ; lastDead = node ; } } if ( node . getValue ( ) ) { counterToKill ++ ; } node = node . getNext ( ) ; } while ( ! killedSomeone ) ; return true ; }
@return Run a round of josephus algorithm and
 returns if the game has to continue or not
@return Run a round of josephus algorithm and returns if the game has to continue or not