Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation and Inputs #11

Open
alextrudeau opened this issue Apr 30, 2019 · 2 comments
Open

Compilation and Inputs #11

alextrudeau opened this issue Apr 30, 2019 · 2 comments

Comments

@alextrudeau
Copy link

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:
Screen Shot 2019-04-30 at 10 12 55 AM

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!

@mdaiter
Copy link

mdaiter commented Apr 30, 2019

@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!

@PascalPons
Copy link
Owner

PascalPons commented May 4, 2019

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: 9d0c61c

As for the opening book file "7x6.book", you can download it from: https://github.com/PascalPons/connect4/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants