This project implements a game of Klondike in C++. It's designed to provide a practical and flexible foundation for simulating the game with customizable parameters with a simple AI implemented.
Customizable Settings: Easily modifiable game options
CLI: User friendly command line interface with a help menu.
Rudimentary AI: Employs a basic AI based on heuristics to attempt to solve the game.
Fast and Efficient: Efficient code allows rapid game simulation with AI to calculate winrate.
- C++ Compiler
- Basic understanding of the game of Klondike.
Clone the repository to your local machine:
git clone https://github.com/lunathanael/Klondike.git
- Modify relevant options in
types.h
. - Navigate to the direction and build with
make release
. - Run
Klonedike.exe
via the terminal, and usehelp
to access commands.
// types.h
#define NUMBER_OF_DECKS 1
#define NUMBER_OF_PILES 7
#define NUMBER_OF_SUITS 4
#define CARDS_IN_SUIT 13
...
Contributions to enhance the functionality or efficiency of the Klondike Solitaire game or AI are welcome
This project is licensed under the MIT License - see the LICENSE.md file for details.
Nathanael Lu - info@lunathanael.dev
Project Link