Command Prompt 2-Player Draughts game
Ok this project wasnt exactly something i had in mind, but was an assignment for university as a learning exersise in how different data structures are used in games, therefore not much in the way of graphics was required
Feature List
*2 players are able to play on the same machine
*game starts with player 1 (black pieces) as the first player, not allowing p2 (white/Red) to go when tis nto there turn
*its not possible to make illegal moves, this is unique for each piece type, but follws the appropriate rules
*when one players peice count reaches 0 the game ends and the winner is anounced
*when a piece reaches the opposite side it is kinged
*its possible to do single captures
*its possible to save and load the game at any point, it is also possible to modify a text file of the default values to make for interesting play scenarios...text file uses key value pairs to seperate the value from the type
*multiple capture is only half implemented, currently i have detection for whether another move is possible for a capture, but it isnt 100 complete
*huffing also is not included but will be easily able to implement it after multiple capture is complete
*its possible to inherit off of the game class and add other games to the program
*interface class included to handle buttons for loading / saving the game etc
*display outputs game specific info in order to tell the players whos turn it is and what the current scores are, is also some debug info i have left in
It is availible for download here: Draughts (right click and save as)
i have included the source code, feel free to modify / improve wherever you want as long as you send me the results ;-)
No comments:
Post a Comment