🃏 Marble Solitaire

May 2022

The Marble Solitaire project is an implementation of the classic board game also known as 'Peg Solitaire' dating back to the 17th century. In this single-player game, the player moves marbles on a board, aiming to make valid moves to clear the board except for a single marble. Valid moves consist of jumping a marble orthogonally over an adjacent marble into an empty hole two positions away, resulting in the removal of the jumped marble.

Java

Java Swing

Marble Solitaire
👩🏻‍💻 Development

This app was developed for CS 3000: Object-Oriented Design as a solo project meant to illustrate the Model-View-Controller paradigm. The first version of this app used only one board shape (known as English solitaire). The game was also only playable via the command line where the board state was drawn out using text.

Future versions implemented new board shapes, including a Triangular and a European version. Following the MVC design pattern enabled me to create new models without affecting the rest of the code. Another addition was the graphical interface. This was developed using Java Swing. Just like how different classes implementing the Model interface were interchangeable, it was similarly easy to swap between Views.

Login

Text-based gameplay

Channels

Triangle solitaire board

Channels

European solitaire board


© 2024 | Built byDessy Dusichka