Saturday, May 4, 2019

I am making available the source code for a basic chess engine that I have written. I have written a number of chess engines. This one is designed to teach how a chess engine works. The project consists of 8 files. These are:
  • globals.h
  • attack.cpp
  • gen.cpp
  • eval.cpp
  • init.cpp
  • search.cpp
  • hash.cpp
  • main.cpp
  • update.cpp

Creating an executable

  1. Download the above files when I have uploaded them.
  2. Download and install the free program Microsoft Visual C++ 2010.
  3. Start a new project. Choose a name.
  4. Select Win32 console program. It needs to be this type in order to play with other engines.
  5. Turn off pre-compiler header files. This choice doesn't work with this project.
  6. Build and run the project to make sure it is working.
  7. Select add new file.
  8. Select .cpp source file.
  9. Rename it attack.cpp
  10. Copy and paste the text from attack.cpp to it.
  11. Repeat steps 7 to 10 for the remaining files.
  12. Build and run the program.

No comments:

Post a Comment