Sokoban.
The objective is to push boxes around in a warehouse, trying to get them to storage locations.
The robot (hubo) is controlled using w, a, s, d.
In the code, we had to work with numbers. For example 2 was considered a box, 1 is the location that the box needs to reach, 3 is a box that has reached its location. Primarily, the code was just a bunch of ifs and elses that considered specific cases for each move. Or at least, that's what I did.
This assignment took half of my day. But it was academically satisfying.
Here is the link to the original game.
The objective is to push boxes around in a warehouse, trying to get them to storage locations.
The robot (hubo) is controlled using w, a, s, d.
In the code, we had to work with numbers. For example 2 was considered a box, 1 is the location that the box needs to reach, 3 is a box that has reached its location. Primarily, the code was just a bunch of ifs and elses that considered specific cases for each move. Or at least, that's what I did.
This assignment took half of my day. But it was academically satisfying.
Here is the link to the original game.