From 2652dec6b38f04f96a9832622418d01805bb7d4a Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 25 May 2022 19:53:22 -0700 Subject: minor cleanup and organisation of lib code --- checkouts.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'checkouts.h') diff --git a/checkouts.h b/checkouts.h index c4ce8db..52b40d8 100644 --- a/checkouts.h +++ b/checkouts.h @@ -1,8 +1,11 @@ #ifndef CHECKOUTS_H #define CHECKOUTS_H -extern char *CHECKOUTS[3][170]; -extern char *SETUP_SHOTS[191]; +#define NUM_CHECKOUTS 170 +extern char *CHECKOUTS[][NUM_CHECKOUTS]; + +#define NUM_SETUP_SHOTS 191 +extern char *SETUP_SHOTS[NUM_SETUP_SHOTS]; int checkouts_suggested(char *buf, int rem, int darts_in_hand); int checkouts_suggested_3_2(char *buf, int rem); -- cgit v1.2.3-70-g09d2