Sorry this is coming through in spurts. A few more things:
Your Done() function should probably take the pattern length as a parameter, so you only check valid spots in the array to see if you're...
Type: Posts; User: anduril462
Sorry this is coming through in spurts. A few more things:
Your Done() function should probably take the pattern length as a parameter, so you only check valid spots in the array to see if you're...
You should learn to use a debugger, they're a great programming tool:
$ gdb ./mastermind
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation,...
Compile with your warnings turned up (for gcc, use the "-Wall" option, other compilers, read the documentation):
$ make mastermind
gcc -Wall -Werror -ggdb3 -std=c99 -pedantic -lm -lpthread...