Skip to content

A simplified console clone of Magic the Gathering with Clash Royale cards.

License

Notifications You must be signed in to change notification settings

angeluriot/Magic_royale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

97 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸƒ Magic Royale

Release Language Size Open Source


⚠️ This project was made for school with a deadline and I chose to leave it as it was at the time of submission ⚠️


This project is a simplified clone of the card game Magic the Gathering Arena, it implements the basic mechanics of the game with a display in the console (no external libraries were allowed). The major difference with the original game is that we took the cards from another game: Clash Royale.



πŸ“‹ Summary


✨ Features

  • Create your own decks of cards (with a .txt file in the decks folder).

  • Start a game with two players and choose their names.

  • Play the cards you want to use.

  • Attack with your creatures.

  • Block opponent's creatures.

  • Change the order of attacks.


πŸƒ Cards

The game has a total of 93 cards, 5 lands, 72 creatures and 16 spells.


🏞️ Lands

Land cards give you the resources to play other cards:

Swamp Island Forest Mountain Plain
Black Black Blue Blue Green Green Red Red White White

πŸ‰ Creatures

Creatures cards can be played to attack or defend, they stay in the game until they die.

They can have standard capacities, see the list below:

  • Flying: Only creatures whith Reach can attack it.
  • Reach: Can attack Flying creatures.
  • First Strike: Attack first.
  • Haste: Can attack on first turn.
  • Unblockable: Cannot be blocked and cannot attack while blocking.
  • Zone Damage: Damages go to all blockers.
  • Multi Hit: Attack both blockers and the player.
  • Freeze: Low the blocker's dammages.
  • Kamikaze: Die on attack.
  • Shield: The shield takes the first hit.

They can also have unique abilities, their effect is described in the Unique ability column:

Card Type Price Power / Toughness
Capacities
Unique ability

Electro Spirit
Spirit 1 2 / 1 Freeze, Kamikaze

Fire Spirit
Spirit 1 2 / 1 Zone_Damage, Kamikaze

Ice Spirit
Spirit 1 1 / 2 Freeze, Kamikaze

Skeletons
Skeleton 1 2 / 1

Bats
Bat 1 Black 3 / 1 Flying, Reach

Spear Goblins
Goblin 1 Red 2 / 2 Reach

Bomber
Skeleton 1 Black 3 / 1 Zone_Damage

Goblins
Goblin 1 Red 2 / 2

Firecracker
Human 2 Red 3 / 2 Reach, Multi_Hit, Zone_Damage

Goblin Gang
Goblin 2 Red 3 / 2 Reach Adds 1 power to all Goblin type allies while alive.

Minions
Minion 2 Blue 3 / 2 Flying, Reach

Archers
Human 2 White 3 / 2 Reach

Knight
Knight 2 White 2 / 3

Skeleton Dragons
Dragon 2 Black Black 3 / 3 Flying, Reach, Zone_Damage

Rascals
Human 3 White White 3 / 4 Reach

Minion Horde
Minion 3 Blue Blue 5 / 2 Flying, Reach

Barbarians
Human 3 White White 4 / 3

Elite Barbarians
Human 4 White White 4 / 4

Royal Giant
Giant 4 Green Green 3 / 5 Reach, Unblockable

Royal Recruits
Human 4 White White White 5 / 4 Multi_Hit

Ice Golem
Golem 1 Green 1 / 3 Unblockable, Freeze Applies the effects of the Freeze capacity to all opponent creatures on death.

Elixir Golem
Golem 2 Green 1 / 4 Unblockable Spawns 1 Elixir Golemites on death. Elixir Golemites spawns 1 Sentient Blobs on death. Sentient Blobs gives 2 Forest cards to the opponent on death.

Dart Goblin
Goblin 2 Green 3 / 2 Reach

Mega Minion
Minion 2 Blue 2 / 3 Flying, Reach

Battle Healer
Angel 2 White White 1 / 3 Flying, Reach Adds 1 toughness to all allied creatures while alive.

Flying Machine
Machine 3 White 2 / 4 Flying, Reach

Zappies
Machine 3 Blue 3 / 3 Reach, Freeze

Battle Ram
Human 3 White 3 / 1 Haste, Unblockable, Kamikaze Spawns 1 Barbarian on death.

Hog Rider
Boar 3 Green 3 / 3 Haste, Unblockable

Mini Pekka
Demon 2 Black Black 4 / 2

Musketeer
Human 2 White White 3 / 3 Reach

Valkyrie
Human 2 White White 2 / 4 Zone_Damage

Wizard
Wizard 3 Blue Blue 4 / 3 Reach, Zone_Damage

Royal Hogs
Boar 3 Green Green 4 / 3 Haste, Unblockable

Giant
Giant 3 Green Green 2 / 5 Unblockable

Three Musketeers
Human 6 White White White 6 / 5 Reach

Wall Breakers
Skeleton 1 Black 5 / 2 Unblockable, Kamikaze

Barbarian Barrel
Human 1 White 2 / 2 Haste Inflicts 1 damage to all enemy creatures on spawn.

Guards
Skeleton 2 Black 2 / 3 Shield

Skeleton Army
Skeleton 2 Black 4 / 1 Multi_Hit

Goblin Barrel
Goblin 2 Red 3 / 2 Haste, Unblockable

Hunter
Humain 2 White White 3 / 3 Reach, Multi_Hit, Zone_Damage

Dark Prince
Knight 2 Black Black 2 / 4 Haste, Zone_Damage, Shield

Baby Dragon
Dragon 3 Red 3 / 3 Flying, Reach, Zone_Damage

Electro Dragon
Dragon 3 Blue Blue 4 / 3 Flying, Reach, Freeze

Cannon Cart
Machine 4 White 3 / 4 Spawns 1 Cannon on death.

Executioner
Human 3 White White 3 / 4 Multi_Hit, Reach

Bowler
Goblin 3 Red Red 3 / 4 Zone_Damage, Multi_Hit

Prince
Knight 3 White White 4 / 3 First_Strike, Haste

Witch
Wizard 4 Blue 3 / 4 Reach, Zone_Damage Spawns 1 Skeleton every turn.

Balloon
Skeleton 3 Black Black 5 / 2 Flying, Unblockable, Zone_Damage Inflicts 1 damage to all enemy creatures on death.

Goblin Giant
Goblin 4 Red Red 3 / 5 Reach, Unblockable Spawns 1 Spear Goblins on death

Giant Skeleton
Skeleton 4 Black Black 2 / 6 Inflicts 3 damages to all enemy creatures on death.

Pekka
Demon 5 Black Black 4 / 5

Electro Giant
Giant 5 Green Green Green 3 / 7 Reach, Unblockable, Freeze

Golem
Golem 6 Green Green 2 / 8 Unblockable Inflicts 1 damage to all enemy creatures and spawns 1 Golemites on death. Golemites also inflicts 1 damage to all enemy creatures on death.

Fisherman
Human 2 White 2 / 3 First_Strike

Royal Ghost
Specter 2 Black 3 / 2 First_Strike

Bandit
Human 2 White 3 / 2 First_Strike, Haste

Miner
Human 2 White 2 / 3 Haste, Unblockable

Princess
Human 2 White 3 / 2 Reach, Zone_Damage

Ice Wizard
Wizard 2 Blue 2 / 3 Reach, Zone_Damage, Freeze Inflicts the effects of Freeze capacity to all enemy creatures on spawn.

Mother Witch
Wizard 3 Blue 2 / 4 Reach Turns creatures she kills into hogs.

Magic Archer
Elf 3 White 3 / 3 Reach, Multi_Hit

Night Witch
Wizard 3 Blue 3 / 3 Spawns 1 Bat every turn.

Electro Wizard
Wizard 2 Blue Blue 3 / 3 Reach, Multi_Hit, Freeze Inflicts 1 damage to all enemy creatures on spawn.

Inferno Dragon
Dragon 2 Red Red 4 / 2 Flying, Reach

Lumberjack
Human 3 White 4 / 2 Casts a Rage spell 1 turn after his death.

Ram Rider
Human 3 Green Green 3 / 4 Multi_Hit, Freeze, Haste

Sparky
Machine 5 Blue 5 / 3 Zone_Damage

Mega Knight
Knight 5 Black Black 3 / 6 First_Strike, Zone_Damage Inflicts 2 damages to all enemy creatures on spawn.

Lava Hound
Demon 5 Red Red 2 / 7 Flying, Reach, Unblockable Spawns 1 Lava Pups on death.

πŸͺ„ Spells

Spell cards can be played to apply effects on the game:

Card Price
Effect

Giant Snowball
1 Blue Reduces power by 1 for all enemy creatures.

Zap
1 Blue Inflicts 1 damage to all enemy creatures.

Arrows
2 White Inflicts 2 damages to all enemy creatures.

Heal Spirit
1 Increases toughness by 1 for all allied creatures.

Earthquake
2 Green Inflicts 3 damages to enemy creatures that do not have the Flying capacity.

Fireball
2 Red Red Inflicts 3 damages to all enemy creatures.

Rocket
4 White White Inflicts 6 damages to the target of your choice.

Mirror
1 White Adds a copy of the last summoned creature in your hand.

Rage
1 White Increases power by 1 for all allied creatures.

Clone
3 Blue Duplicates all your creatures but with 1 toughness.

Tornado
2 Green Inflicts 1 damage and reduces power by 1 to all enemy creatures.

Poison
2 Red Red Inflicts 2 damages and reduces power by 1 to all enemy creatures.

Freeze
2 Blue Blue The opponent cannot block on this turn.

Lightning
4 Blue Blue Inflicts 4 damages to all enemy creatures.

The Log
1 Green Inflicts 2 damages to enemy creatures that do not have the Flying capacity.

Graveyard
3 Black Black Resurrects the last two cards of the graveyard.

πŸ› οΈ Install

Makefile

$ make
$ make run

CMake

See the installation part of my Skeleton project template.


πŸ—“οΈ Releases

If you just want to test the program without editing the source code, go see the Releases.


πŸ™ Credits

About

A simplified console clone of Magic the Gathering with Clash Royale cards.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages