Programmer245 / IS24-AM32

Software Engineering Project - Bachelor of Computer Engineering (PoliMi)
0 stars 0 forks source link

Broken Loop #21

Closed lorenzo-cmyk closed 6 months ago

lorenzo-cmyk commented 6 months ago

For loop broken in Match.java

public boolean createFieldPlayer(String nickname, boolean side) {
        for (int i=0; i<players.size(); i++) { // Scan all players
            if (players.get(i).getNickname().equals(nickname)) {
                players.get(i).initializeGameField(true);
            }
            return true;
        }
        return false;
        // TODO
    }
ingconti commented 6 months ago

param: boolean side) is NOT used. why?

Programmer245 commented 6 months ago

Because we are yet to finish the method implementation, as indicated by the //TODO comment

lorenzo-cmyk commented 6 months ago

param: boolean side) is NOT used. why?

Yes, this method is not yet implemented. I misread my to-do list. This issue should not exist.