Skip to content

jdshaeffer/dungeon-solitaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dungeon solitaire

a sorta fun quick single-player card game: https://jdshaeffer.github.io/dungeon-solitaire/

how to play

clear the dungeon of all its monsters and treasures!

begin by receiving an initial health value, randomly selected from 1-20, and an initial attack power value, randomly selected from 1-8. the game is played out of a 52 standard card deck, shuffled up and laid face-down in a 5*10 grid. the last 2 cards are presented to you face-up at the beginning of the game as a "soft" entrance into the dungeon - you select the one you want and the other is discarded.

you then flip over each card and interact with it to clear it. you can only select those that are adjacent to an empty space except for the first card. hearts give you more health and diamonds give you more gold. you roll to determine how much health or gold you get depending on the card's value. for example, if you encountered the 5 of hearts, you will receive an increase in health - randomly selected from 1 to 5.

spades and clubs are the monsters of the dungeon. the health of a monster is equivalent to their card's value. the damage you do to a monster will be a random value between 1 and the value of your attack power. the damage a monster does to you will be a random value between 1 and their card's value. a battle between a monster will end when their health reaches 0 or when your health reaches 0. when you defeat a spade, roll for health, according to the card's value. when defeating a club, roll for gold.

use the gold you earn at the shop to upgrade your attack power or get more health. the difficulty of the game determines the prices at the shop.