Open alextrudeau opened 5 years ago
@alextrudeau I ran into similar issues. To fix these, I created a CMake-based build system and fixed the generator.cpp compilation issues that were being thrown while attempting to compile generator.cpp
. The current pull request is here: https://github.com/PascalPons/connect4/pull/12/files .
You'll find a c4solver
and c4generator
binary created for you after compiling with CMake. c4generator
, when provided no arguments, creates the 7x6.book
file you're looking for. After invoking the generator from the command-line, you need to manually input your map.
Hope this helps!
Hi @alextrudeau, Your build went fine, the .depend is actually auto-generated by the first run of make, the error message is only printed at first compilation. Your first line shows that the file .depend has been generated correctly. This file contains auto-computed list of dependencies between cpp and header files that could be otherwise hardcoded in the Makefile.
I have pushed a fix to prevent make from printing this error at the first compilation: https://github.com/PascalPons/connect4/commit/9d0c61cdd5b55888ffa58a9dcbf699916e0bd55f
As for the opening book file "7x6.book", you can download it from: https://github.com/PascalPons/connect4/releases
I apologize in advance because I'm a c++ novice, but I was hoping you could help me understand what '.depend' is in the make file. When I try running make, I get the following problem:
Also, when I try running ./c4solver, what kind of command line arguments are expected? Are board positions that I want to be evaluated supposed to be in '7x6.book' or are they entered directly into the command line? Can you please give an example of what '7x6.book' should look like or what the command line arguments should look like?
Thank you!