From: Eric S. Raymond Date: Thu, 13 Apr 1995 06:05:24 +0000 (+0000) Subject: reduce instances of the magic number 8 to 1. X-Git-Tag: 2.0~22 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=9ee93de323e503d372abb76c069ceeb73dc41fa0;p=deal.git reduce instances of the magic number 8 to 1. --- diff --git a/deal.c b/deal.c index 8e2aff8..09cbd9a 100644 --- 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"); }