©️ 🐒 kwoolter 2021 Card game based on Guild of Dungeoneering concept. Thanks to GAMBRINOUS for inspiration and borrowing graphics.
run_gui.py
pygame GUI to play the game.
Typical flow of the game:-
SPACE
to start a game1
-4
to select a card that you want to play nextEnter
to play a round with the selected card- Repeat until someone dies
OR, use the mouse and just click on stuff.
run.py
Command Line Interface to test out the Model.
Typical flow of the game uses these commands:-
battle
to start the battlehand
to see the player's hand and what the enemy haspick
to select which card in the player's hand you want to useround
play the round of the player versus the enemystatus
see how the player and enemy are doing- Go back to the
hand
step - Repeat until someone dies
The game consists of Battles between a Player character and an Enemy character.
Each character has their own deck of Battle Cards that they can play to determine the next action of their character.
Each Battle starts by selecting a Player and an Enemy. A Battle consists of a number of Rounds where each character
picks which card they are going to play in that Round then the outcome of the Round is determined.
If both character's survive the Round then new cards are dealt and a new Round starts
If your Player survives a Battle then they move on to the next
Battle with their health restored. If they defeat an Enemy of the same of higher level then the Player levels up.
If a Player dies in battle then a new Player is created to take on the challenge in the next Battle.
Battle cards have the following features:-
The BattleCard.generate(n)
method will generate a random card with n
features added.
In addition a Battle Card can have an effect on the Player that lasts a number of turns.
Both the player and an enemy have the following:-
- Deck - a deck of hidden Battle Cards
- Hand - The hand of cards that have been dealt from the deck to play with in a round
- Discard pile - cards that have been used in a round and discarded