crooks

combinatorial rooks
git clone https://a3nm.net/git/crooks/
Log | Files | Refs

commit 1cd7bbf5aba3a968c6ffbac5e4d1cbe65f538d90
parent 675ac9eea9a69d27bc84bad4f5a7f70df0a1d093
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 31 May 2014 23:43:05 +0200

don't print before you found, add compile note

Diffstat:
main.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -2,6 +2,8 @@ #include <stdlib.h> #include <time.h> +// compilation: +// gcc -std=c99 -O2 -Wall main.c // usage: // ./a.out N K [SEED] // SEED is used to seed the RNG, otherwise time is used; @@ -360,7 +362,7 @@ int main(int argc, char **argv) { // compute number of attacks and violations num_attacks(); tot = num_violations(); - print(); + //print(); int useless = 0; int prev_rook = -1;