Skip to content

bas080/dammen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dammen

An implementation for validating the legality of a Draughts move.

Goals

  1. Support PDN files. These are fed into the program and validated. The program will exit successfully when the PDN file is completely valid.

  2. Build a simple CLI client for printing board and editing the PDN file (Making a move). PrologScript might help achieving this task.

  3. Make a server that will host one or more games and ties into the CLI tool. (Basically hosts the PDN files and allows players of the match to update the PDN file).

  4. Archive games by putting to an FTP server.

  5. Add optparse to the CLI module.

Contribute

Feel free to contribute in a manner you see fit.

The source files are located in ./src/

  • cli.pl enables rule checking from the command line.
  • dammen.pl implements the rule checker for the game of Draughts.
  • pdn.pl used for parsing and stringifying PDN files.
  • daxy.js is a minimal server for playing a game by sending back and forth PDN files.

Tests

I want to give a shout out to the people that host this PDN file. I use these to test the parser and rule checker.

The test require mache to be installed.

Run the tests with Perl's prove or by executing one of these files: ./t/*.t

License

GNU General Public License 3.0

Credits

Veel dank aan FMJD voor het delen van de PDN bestanden.

Ik wijd deze software toe aan Rom. Dankjewel voor het opnieuw ontwekken van mijn liefde voor het bordspel.