[General boards] [Winter 2019 courses] [Fall 2018 courses] [Summer 2018 courses] [Older or newer terms]

A2 Modifying main


To what extent are we allowed to modify main and FishFrame? I thought of an implementation that is easier to debug and can keep track and display all entities without the need to iterate through every possible coordinate.
It requires removing the nested for-loops that iterate through the coordinates and I am afraid that it may fail autotesting or is a too big of a change. Other methods like addEntity and getEntity can be presevered though.



As long as you preserve the semantics of “addEntity” and “getEntity” you will be fine, feel free to edit everything else to your heart’s content

Note: Don’t change the maximum width / height though