Better messages in case of draw
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 25 Jan 2018 10:17:50 +0000 (11:17 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 25 Jan 2018 10:17:50 +0000 (11:17 +0100)
js/rpsls.js

index d7cae75..b22e5af 100644 (file)
@@ -4,11 +4,11 @@ const symbols = [ "Rock", "Lizard", "Spock", "Scissors", "Paper" ];
 
 // Same order as in symbols
 const messages = [
-       [ "=",             "crushes",        "is vaporized by", "cruches",           "is covered by"   ],
-       [ "is crushed by", "=",              "poisons",         "is decapitated by", "eats"            ],
-       [ "vaporizes",     "is poisoned by", "=",               "smashes",           "is disproved by" ],
-       [ "is crushed by", "decapitates",    "is smashed by",   "=",                 "cuts"            ],
-       [ "covers",        "is eaten by",    "disproves",       "is cut by",         "="               ],
+       [ "can't win vs.", "crushes",        "is vaporized by", "cruches",           "is covered by"   ],
+       [ "is crushed by", "can't win vs.",  "poisons",         "is decapitated by", "eats"            ],
+       [ "vaporizes",     "is poisoned by", "can't win vs.",   "smashes",           "is disproved by" ],
+       [ "is crushed by", "decapitates",    "is smashed by",   "can't win vs.",     "cuts"            ],
+       [ "covers",        "is eaten by",    "disproves",       "is cut by",         "can't win vs."   ],
 ];
 
 // Rewards matrix, order as in symbols