Skip to content

A MineSweeper clone implemented for many home-consoles and computers.

License

Notifications You must be signed in to change notification settings

ArqueologiaDigital/Mines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mines

A MineSweeper clone implemented for many home consoles and computers.

Licensed under GNU General Public License version 2 (or later)

Existing ports in this repo

For specific build & runtime/debug dependencies, please check the individual README.md files for each of the available ports below:

How to create your own

  • Create a new subdirectory in platforms named after the new platform;
  • Create at least one source file (.c suffix) to put your platform-specific functions and macros;
    • You might want to separate functions in files input.c and video.c (according to purpose) as commonly found in other platforms;
  • Add common.h (for generic definitions) and game.h (for more specific game definitions) to your source files using the #include macro;
  • Implement all functions and macros defined in common.h (follow the instructions for each in the file);
  • Implement all functions and macros defined in game.h (follow the instructions for each in the file);

You can compare you implementation with a preexisting one if you are stuck. ncurses should be easy to follow.

How to generate HTML documentation

The following Python 3 packages should be installed:

  • pandoc
  • pygments
  • pandocfilters

Which you can do by typing

pip install -r requirements.txt

And then generate the HTML files by executing the command

make docs

And they will be found on the docs folder.