Back
2022
# Game Development

Sokoban

A Sokoban remake built in C using ncurses, featuring full terminal interaction and map loading.

~/Tags

C/NcursesTerminal Game2022

~/About

My Sokoban is a warehouse-puzzle game developed in pure C and rendered entirely in the terminal using the ncurses library. The player moves boxes around a map, pushing them onto storage locations while avoiding blocking situations. The project follows strict UNIX programming rules, with complete error handling, terminal resizing support, and a reset system via the space bar. The game loads maps from external files, validates them, and handles player movement through arrow keys. If all boxes are placed correctly, the game returns 0. Unit tests were a part of the school requirements, ensuring best practices and code reliability.

~/Gallery

view
view

~/Key features

Implemented in pure C with ncurses
Terminal-based rendering with dynamic resizing
Map loading and validation from external files
Arrow key movement and Sokoban mechanics
Reset system (space bar)
Returns correct status codes (0 win, 84 error)
Error handling and input validation
Unit tests and formatted C code