Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 925 Bytes

README.asciidoc

File metadata and controls

44 lines (30 loc) · 925 Bytes

Sokoban

Build

The graphical version requires SDL 1.2 development headers. In Debian / Ubuntu, install dependencies as shown below.

# apt-get install libsdl1.2-dev

To build the graphical version:

$ make sdl-config
$ make

The terminal version requires ncurses development headers. In Debian / Ubuntu, install dependencies as shown below.

# apt-get install libncurses5-dev

To build the terminal version:

make ncurses-config
make

Design

The code follows an MVP design pattern. The model is provided by world.c. The view is provided by sdl-view.c and term-view.c. The presenter is provided by game-engine.c and main.c

Credits