Skip to content

A card game with simple rules where you can play against a Friend or a Bot

Notifications You must be signed in to change notification settings

Gayar78/CardGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CardGame

I - To launch the game:

Simply compile the program, commenting the first line with #define TESTING and adding // before it.

II - Next, you'll be asked to enter a game mode:

  • AI = 🥷🏼vs🤖
  • JvJ = 🥷🏼vs🥷🏼

In AI mode, you'll play against a BOT 🤖 which has already trained against other BOTS 🤖🤖🤖 to find the strongest deck from a set number.

III - You can choose between:

  • ⭐Easy AI, with 100 decks
  • ⭐⭐Medium AI, with 5000 decks
  • ⭐⭐⭐Hard AI, with 7000 decks

The program will ask you to allocate a number of prestige points to each player.
Both players have the same number of prestige points.

IV - Once you've entered the names of the two players (🥷🏼🥷🏼) in JvJ mode

IV - Once you've entered the names of the player (🥷🏼) in AI mode (🤖)

The game will ask you to choose how to organize your deck
Proposing several pre-programmed orders.

V - You can choose between:

1. ❓❓Random mode (where all cards are randomly arranged)
2. ❓Handmade mode (which lets you choose the position of each card manually (based on the card's index))

3. ⭐⭐Sort cards from smallest to largest Attack damage
4. ⭐Sort cards from largest to smallest Attack damage

5. ⭐⭐Sort cards from smallest to largest Magic damage
6. ⭐Sort cards from largest to smallest Magic damage

7. ⭐⭐Sort cards from smallest to largest Defence
8. ⭐Sort cards from largest to smallest Defence

9. ⭐⭐⭐ Sort by descending order of (1) attack, then (2) magic, then (3) defense

VI - Once the players have their decks

The program runs and plays both players' cards until:

  1. One of them has no more prestige points
  2. Both players have no more cards
  3. Whoever falls to 0 first loses (if both players fall below 0 at the same time, the player with the fewest prestige points loses)

( (To run the tests, simply uncomment the first #define TESTING line) )

About

A card game with simple rules where you can play against a Friend or a Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages