From e8a4c6e39ad6ad3e842269477f608317135ec899 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 24 Apr 2020 08:38:31 -0700 Subject: [PATCH] don't run duplicate games by default Duplicate games get lots of crashes when mixed with phonies code. Will need to fix that before enabling duplicate mode. In general there are lots of assertion failures mixing trades and undos and phonies and running dozens of games at once. I don't think that's new so will ship now and fix later. --- xwords4/linux/scripts/discon_ok2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/linux/scripts/discon_ok2.py b/xwords4/linux/scripts/discon_ok2.py index 84e13a926..53b7a020d 100755 --- a/xwords4/linux/scripts/discon_ok2.py +++ b/xwords4/linux/scripts/discon_ok2.py @@ -706,12 +706,12 @@ def mkParser(): help = 'send all packet twice') parser.add_argument('--phonies', dest = 'PHONIES', default = -1, type = int, help = '0 (ignore), 1 (warn)) or 2 (lose turn); default is pick at random') - parser.add_argument('--make-phony-pct', dest = 'PHONY_PCT', default = 0, type = int, + parser.add_argument('--make-phony-pct', dest = 'PHONY_PCT', default = 20, type = int, help = 'how often a robot should play a phony (only applies when --phonies==2') parser.add_argument('--use-gtk', dest = 'USE_GTK', default = False, action = 'store_true', help = 'run games using gtk instead of ncurses') - parser.add_argument('--duplicate-pct', dest = 'DUP_PCT', default = 50, type = int, + parser.add_argument('--dup-pct', dest = 'DUP_PCT', default = 0, type = int, help = 'this fraction played in duplicate mode') # #