Closed ingconti closed 4 years ago
pols remove hard-coded values as in:
SquareToJson[][]map=new SquareToJson[5][5]; Square [][]mappa=controller.getGame().getField().getSquares(); for(int i=0;i<5;i++) for(int j=0; j<5;j++)
...
use final static... and so on...
scusi, non abbiamo capito quale sarebbe l'errore, potrebbe essere più specifico?
The problem is the number 5.
I make a ref to "https://beep.metid.polimi.it/web/2019-20-prova-finale-ingegneria-del-software-alessandro-margara-/documenti-e-media?p_p_id=20&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_20_struts_action=%2Fdocument_library%2Fview_file_entry&_20_fileEntryId=181617309&#p_20"
(slide 3 and 5 for example)
at slide:
fixed
good!
pols remove hard-coded values as in:
...
use final static... and so on...