gianvitocaleca / ingsw2022-AM44

1 stars 0 forks source link

don't hard code numbers... #13

Closed ingconti closed 2 years ago

ingconti commented 2 years ago

for (int i = 0; i < 12; i++) { values.add(0); } values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1); for (int i = 0; i < 100; i++) { mn = new MotherNature(); values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1); }

    for(int x=0; x<**12**; x++){
gianvitocaleca commented 2 years ago

Thank you for the help. I just changed those numbers into constants, in the next days we will search into the whole code for other situations like this.

gianvitocaleca commented 2 years ago

We just changed every number used with a constant