I am receiving "parse error in if statement: missing required else clause" on line 202. I believe I am using the correct if-then-else syntax for haskell. But let me know what's wrong. Thanks
I've tried shifting the various if statements around but to no avail
playerMove p e =
if ((getPHealth p) > 0) then
do
putStrLn (showOpts2)
move <- getLine
if (move == 0) then
do
let e = Enemy (getEDescription e) ((getEHealth e) - (getPAttack p)) (getEAttack e)
putStrLn ("you dealt " + (getPAttack p) + " damage to your foe")
enemyMove p e
if (move == 1) then
do
let p = Player (getPHealth) (getPAttack) (getPScore) True
return p
else return p
else return p
else return p
else. It should be beforeif (move == 1).