Skip to content

Implementation of the well-known board game Peg Solitaire in C++ together with a simple 2D user interface for playing.

Notifications You must be signed in to change notification settings

Munchlaxist/PegSolitaire

Repository files navigation

PegSolitaire

This is a hobby project where I want to implement peg solitaire in C++ together with a simple two-dimensional UI.
My goal is not only to implement the game, but to also extend it with multiple features.

What is already done?

I have implemented already the basic game logic and a basic UI. You could already play and restart the game.
My main goal was to have a clear seperation of game logic and user interface for easier understandability and readability.

Current TODOs within this project?

Animation bar

The goal is to have an animation bar when the player wants a hint for the next move (which leads to a valid solution). If there is no solution found (because of calculation timeout or no possible solution anymore) this is displayed

Optimize backtracking algorithm

The solver is relatively simple, i.e. not that fast and I need to upgrade this.

New variants of peg solitaire fields

English variant is the current one, but I also want to add the european variant and the diamond variant. The field will be choosen by the player.

What are my plans?

There is no fixed release yet. It is my first public project in GitHub, so I have much to learn.
But I plan to have it at some point. For more specific plans like game advancements and documentation you can just check out the "Issues".
But it should be clear that I do not see myself as a texture artist, so a simple GUI is absolutely enough for me in the near future.

What is my intention with this project?

First of all: Programming is fun :-).
Second of all I always wanted to have a project where I can work on when I'm bored.

Which library do I use in my project?

I use the SFML (Simple and Fast Multimedia Library) in version 3.0.0 (https://www.sfml-dev.org/download/sfml/3.0.0/)

About

Implementation of the well-known board game Peg Solitaire in C++ together with a simple 2D user interface for playing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages