Skip to content

xpeppers/rpg-game-kata-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPG Combat Kata

Source: https://github.com/ardalis/kata-catalog

Background

This is a fun kata that has the programmer building simple combat rules, as for a role-playing game (RPG). It is implemented as a sequence of iterations. The domain doesn't include a map or any other character skills apart from their ability to damage and heal one another.

Instructions

  1. Complete each iteration before reading the next one.

  2. It's recommended you perform this kata with a pairing partner and while writing tests.

Iteration One

  1. All Characters, when created, have:

    • Health, starting at 1000
    • Level, starting at 1
    • May be Alive or Dead, starting Alive (Alive may be a true/false)
  2. Characters can Deal Damage to Characters.

    • Damage is subtracted from Health
    • When damage received exceeds current Health, Health becomes 0 and the character dies
  3. A Character can Heal a Character.

    • Dead characters cannot be healed
    • Healing cannot raise health above 1000

About

RPG combat game kata with a C# setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages