The Orc Battle Game
In the Orc Battle game, you’re a knight surrounded by 12 monsters, engaged in a fight to the death. With your superior wits and your repertoire of sword-fighting maneuvers, you must carefully strategize in your battle with orcs, hydras, and other nasty enemies. One wrong move and you may be unable to kill them all before being worn down by their superior numbers. Using
defstruct, let’s dispatch some whoop ass on these vermin!
Global Variables for the Player and Monsters
We’ll want to track three player stats: health, agility, and strength. When a player’s health reaches zero, that player will die. Agility will control ...