Skip to content

A Console game of Klondike Solitarie with customizable options and a rudimentary AI

Notifications You must be signed in to change notification settings

lunathanael/Klondike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Modify relevant options in types.h.
  2. Navigate to the direction and build with make release.
  3. Run Klonedike.exe via the terminal, and use help 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
...
image

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

About

A Console game of Klondike Solitarie with customizable options and a rudimentary AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published