Posted January 28, 2020 by ck099
#oop #inheritance
A school project. Based on the game sokoban.
One of the first project were I learned OOP. Inheritence is implemented.
v1. Was the basic game
V2. Had to make extra implementation.
Difficulty could be set to easy, normal and hard.
Hard mode: An 'enemy' was introduced. The enemy walk randomly across the map to make it more difficult for the player.
Normal mode: The basic game.
Easy mode: Implemented a method inside a method. The box push method will call its own method. The result is that more boxes could be pushed if it is behind eachother.