Anonymous user
Rock-paper-scissors: Difference between revisions
→{{header|Haskell}}
Line 668:
putStrLn ("Player: " ++ show h ++ " Computer: " ++ show c)
putStrLn (res h c ++ "\n")
let rr = if h == Rock then r
pp = if h == Paper then p
ss = if h == Scissors then s
game (rr,pp,ss)
|