This page looks at the structure of Sokoban, as a typical, real C program that has been released as source code onto the Internet. The main disadvantage is that it uses old K&R notations instead of ANSI C. Most programs under Unix still do.
In addition, there is very little internal doco. Each file should have author, name of file, date of modification, revision history, etc. none do. Each function should have purpose and a description of parameters. None do.
The files in Sokoban are
The file Makefile is used by ``make'' to build Sokoban.
The file sokoban.h contains lots of define'd symbols and data types.
The file play.c contains functions
The file readscreen.c contains functions
The file save.c contains functions
The file score.c contains functions
The file showscreen.c contains functions
The file sok.c contains functions