summaryrefslogtreecommitdiff
path: root/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'comp.c')
-rw-r--r--comp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/comp.c b/comp.c
index f1adb75..13b21a6 100644
--- a/comp.c
+++ b/comp.c
@@ -73,7 +73,10 @@ struct segment next_dart(int rem, int darts_in_hand)
char *c = NULL;
if (rem <= 170)
c = CHECKOUTS[darts_in_hand-1][rem-1];
- if (!c) c = "T20";
+ if (!c && rem <= 191)
+ c = SETUP_SHOTS[rem-1];
+ if (!c)
+ c = "T20";
return segment_from_name(c);
}