Skip to content

Warehouse keeper (sokoban) game in computer terminal, project for semester 1 of the Epitech Unix System Programming module (B-PSU-100).

License

Notifications You must be signed in to change notification settings

WilliamJlvt/my_sokoban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unix System Programming - My Sokoban

Warehouse keeper (sokoban) game in computer terminal, project for semester 1 of the Epitech Unix System Programming module (B-PSU-100).

Introduction

This project involves implementing a terminal version of the classic Sokoban game. The game is played on a map, and the player must move boxes onto storage locations. The player can only push one box at a time, and the boxes can only be pushed, not pulled. The game concludes when all the boxes have been moved onto storage locations, at which point the result is displayed.

The full description of the project can be found in subject.pdf.

Prerequisites

Installation

B-PSU-100> git clone [email protected]:WilliamJlvt/my_sokoban.git
...
B-PSU-100> make
...

Usage

B-PSU-100> ./my_sokoban -h
USAGE
    ./my_sokoban map
DESCRIPTION
    map  file representing the warehouse map, containing ‘#’ for walls,
         ‘P’ for the player, ‘X’ for boxes and ‘O’ for storage locations.

Results

test passed results
01 - usage and input checks 4/4 100%
02 - basic moves 4/4 100%
03 - basic collisions and box on targets 4/4 100%
04 - intermediate moves and collisions 6/6 100%
05 - intermediate maps tests 4/4 100%
06 - intermediate winning and losing conditions 2/2 100%
07 - final moves and collisions 6/6 100%
08 - final maps tests 4/4 100%
09 - final winning and losing conditions 2/2 100%
total 36/36 100%

Final mark: 20

Coding style

All the source code has been written according to the Epitech C Coding Style.

errors

Fatal Major Minor Info
0 0 0 0

Unit tests

Unit tests are written using the Criterion framework. You can find the tests in the bonus directory. Just run make to build the tests and ./my_sokoban_tests to run them.

Authors

License

This project is licensed under the GNU Public License version 3.0 - see the LICENSE file for details.

About

Warehouse keeper (sokoban) game in computer terminal, project for semester 1 of the Epitech Unix System Programming module (B-PSU-100).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published