How to build Craft - patwonder/craft-othello GitHub Wiki

Introduction

This page introduces how to build Craft from the cloned source.

Details

  1. Clone the craft-othello repository: git clone https://github.com/patwonder/craft-othello.git
  2. Open "Othello\Craft.sln" using Microsoft Visual Studio 2013.
  3. Right click "Craft Engine" in the solution explorer, and choose "Properties".
  4. Expand to "Configuration\Linker\Optimization". Make sure "Link time code generation" option has been set to "/ltcg" for the "Release" configurations you want to build (Win32 or x64).
  5. Build the project.
  6. Before running Craft, copy the contents under "Othello\Game" folder into where the executable is built. For example, "Release|Win32" -> "Othello\Release", "Release|x64" -> "Othello\x64\Release".

Notes

Since the offical release is built using Profile-Guided Optimizations(PGO), your own build may not be as fast as the official one. If you want to create your own PGO build, follow the instructions at http://msdn.microsoft.com/en-us/library/e7k32f4k(VS.80).aspx .