Browse Source

cmdToString fix

vm
Slash 9 years ago
parent
commit
8a9d792575
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Datatypes/Game.hs

+ 2
- 2
src/Datatypes/Game.hs View File

@ -49,9 +49,9 @@ new b us = Game {
} where (c:cs) = map (flip Unit.centeredIn b) us
phraseConverter :: [Command] -> String
phraseConverter s = if s == reverse [MoveE, MoveSW, MoveW]
phraseConverter s = if s == [MoveE, MoveSW, MoveW]
then "ei!"
else if s == reverse [MoveSW, MoveSW, MoveW, MoveSE, MoveSW, MoveSW, MoveW]
else if s == [MoveSW, MoveSW, MoveW, MoveSE, MoveSW, MoveSW, MoveW]
then "ia ! ia!"
else "PUPPA"


Loading…
Cancel
Save