Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1002 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 1002 Bytes

my_sokoban

SOKOBAN

About The Project

The player is confined to the board, and may move horizontally or vertically onto empty squares (never through walls or boxes). The player can also move into a box, which pushes it into the square beyond. Boxes may not be pushed into other boxes or walls, and they cannot be pulled. The number of boxes is equal to the number of storage locations. The puzzle is solved when all boxes are at storage locations, the puzzle is failed if all boxes are stuck.

Requirements

  • GCC
  • NCURSES library

Getting Started

Execute make then ./my_sokoban map.txt

You can edit the map file representing the warehouse map, it must have the same amount of boxes X and storage locations O. The player is represented by a P and walls by #.

MY_SOKOBAN