by Bram-Boris Meerlo and Peter-Jan Gootzen for a Data Structures assignment for Avans Hogeschool
- Arrows keys control the player(@)
- Press the o key whilst playing to open a level
- Your objective is get all the boxes(o) on the designated spots(x)
- The level is completed when all boxes(o) are on a spot(x).
The Presentation layer knows about the internal structure of the Model layer. The fix is to have each model have a GetChar() method(via an interface), then the CLI class can simply itterate over every item and call and print it's character. This results in CLI class printing the whole gamescreen without having any knowledge about the Model layer.
This flaw has been fixed in the successor of this assignment Goudkoorts