Relative Content

Tag Archive for cundo

Sokoban: How to undo multiple box positions in C

I’m having trouble with getting the undo command (‘u’) to undo the position of the boxes. When the player pushes a box, the box and the player move and when the move is reversed, the box and player move back to the previous position.