]> thyrsus.com Git - deal.git/commitdiff
reduce instances of the magic number 8 to 1.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 13 Apr 1995 06:05:24 +0000 (06:05 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 13 Apr 1995 06:05:24 +0000 (06:05 +0000)
deal.c

diff --git a/deal.c b/deal.c
index 8e2aff8202cce51ea84fc35e531578bf611cdc8d..09cbd9ac2642359e6a7d3363bbc0b119b4e5e41c 100644 (file)
--- a/deal.c
+++ b/deal.c
@@ -44,14 +44,14 @@ main(argc, argv)
 
         for (i = 1; i <= turns; i++) {
             (void) printf("%2d   | ",i);
-            for (j = 0; (j < columns) && (j < i + (BASEHAND+1)) && (j < special+1); j++)
+            for (j = 0; (j < columns) && (j < i + 8) && (j < special+1); j++)
            {
                double p = hyper_prob(j, i + BASEHAND, special, total);
 
                 (void) printf("%2.2d ",(int)rint(p * 100));
            }
 
-            for (j = i + (BASEHAND+1); j < columns; j++)
+            for (; j < columns; j++)
                 (void) printf(" * ");
             (void) printf("\n");
         }