From 7db61f7d9ab6568b4ab141be2ac6d583a94159ef Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Jun 2021 11:11:24 +0000 Subject: tripoli: Fix bug in you_may_play. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 009760c..184f8d1 100644 --- a/rules.js +++ b/rules.js @@ -312,7 +312,7 @@ function you_may_play(current, list) { else { for (let i = 0; i < list.length-1; ++i) msg += list[i] + ", "; - msg += "or " + list[i] + "."; + msg += "or " + list[list.length-1] + "."; } } else { msg += "\u201c" + CARD_NAMES[list] + "\u201d."; -- cgit v1.2.3