Klondike in C++
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.
Features
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.
Getting Started
Prerequisites
- C++ Compiler
- Basic understanding of the game of Klondike.
Installation
Clone the repository to your local machine:
git clone https://github.com/lunathanael/Klondike.git
Usage
- 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.
Code Examples
// types.h
#define NUMBER_OF_DECKS 1
#define NUMBER_OF_PILES 7
#define NUMBER_OF_SUITS 4
#define CARDS_IN_SUIT 13
...
Contributing
Contributions to enhance the functionality or efficiency of the Klondike Solitaire game or AI are welcome
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Contact
Nathanael Lu - info@lunathanael.dev
Project Link