There are two small issues i've noticed with the current workspace code for lab 10:
The signature of the play() method in SnakeGame doesn't match the ones in the subclasses OnePlayerGame/TwoPlayerGame, which results in compilation errors when using override.
In Player.scala, the instances of the enum KeyMap, Letters and Arrows, don't match the inputs provided by onKeyDown(), i.e. pressing w/a/s/d or Left/Right/Down/Up doesn't work without correcting the spelling in KeyMap.
I could make a small PR with the changes if it seems reasonable.
There are two small issues i've noticed with the current workspace code for lab 10:
SnakeGame
doesn't match the ones in the subclassesOnePlayerGame
/TwoPlayerGame
, which results in compilation errors when usingoverride
.Player.scala
, the instances of the enumKeyMap
,Letters
andArrows
, don't match the inputs provided byonKeyDown()
, i.e. pressing w/a/s/d or Left/Right/Down/Up doesn't work without correcting the spelling inKeyMap
.I could make a small PR with the changes if it seems reasonable.