Skip to content

An implementation of the well-known Higher Lower card game that makes use of OOP and SOLID principles

Notifications You must be signed in to change notification settings

alex-croitoriu/Higher-Lower-Card-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Higher Lower Card Game

A terminal-based implementation of the well-known higher lower card game, developed in C#. This was my first hands-on experience with Object Oriented Programming and SOLID principles, providing a valuable learning opportunity.

🛠️ Features

  • The game is played in rounds. Each round players guess whether the next card will be higher, lower or equal

  • You play against an AI opponent

  • Option to set a default betting amount at the beginning a new game

  • Option to raise the bet when your guess differs from the AI's

  • Option to either quit or start over when current game ends

  • Win Condition: You bring the AI's balance down to 0

  • Lose Condition: The AI brings your balance down to 0

🚀 Quick Start

1. Clone the project

git clone https://github.com/JellyGamez/Higher-Lower-card-game.git

2. Go to the project directory

cd Higher-Lower-card-game

3. Launch the game

dotnet run

📋 Note

This project uses .NET 8.0 by default. If you wish to use other .net versions, update the following in the demo.csproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>

    <TargetFramework>net8.0</TargetFramework> // Your version here

    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
</Project>

About

An implementation of the well-known Higher Lower card game that makes use of OOP and SOLID principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages