An open API service indexing awesome lists of open source software.

https://github.com/victorharri-chal/sokoban

🧱 A reproduction of the japanese sokoban game with the ncurses library in C. Done on my 1st year at Epitech
https://github.com/victorharri-chal/sokoban

c epitech first-year-project game ncurses-library sokoban-game

Last synced: about 1 month ago
JSON representation

🧱 A reproduction of the japanese sokoban game with the ncurses library in C. Done on my 1st year at Epitech

Awesome Lists containing this project

README

        

# my_sokoban

![SOKOBAN](https://user-images.githubusercontent.com/32702872/36005602-b5d4ea7e-0d38-11e8-8600-faf37687e757.gif)

## 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](my_sokoban.png)