Git Product home page Git Product logo

akochan's Introduction

Build with Linux

Check you can use lboost_system. If not, probably you can install it with

$ sudo apt-get install libboost-all-dev

Run following in "ai_src" directory.

$ make -f Makefile_Linux

You will see libai.so in root directory.

Then run following in root directory

$ make -f Makefile_Linux

Then you will see system.exe in root directory.

Build with Windows

Check you can link lboost_system, and rewrite LIBS of Makefile(both in ai_src and root directory). In the environment of the author, "-lboost_system-mgw62-mt-x64-1_70" is valid.

Check the number of logical processors of your machine and rewrite NPROCS value of ai_src/Makefile. You can check the number by

> $cs = Get-WmiObject -class Win32_ComputerSystem; $cs.numberoflogicalprocessors

Then run following in "ai_src" directory.

> make

You will see ai.dll in root directory.

Next, run following in root directory.

> make

Then you will see system.exe in root directory.

Selfmatch

Selfmatch will be executed by following command

./system.exe test "begin(int)" "end(int)"

Self-matches will be executed with random seed of begin to end - 1. Game record will be saved in a directory specified by "result_dir" of setup_match.json. Chicha of self-matches are those specified in "chicha" of setup_match.json. For example, when begin=100, end=102 and "chicha" is [0, 1], following 4 mathces will be executed.

random seed = 100, chicha = 0
random seed = 100, chicha = 1
random seed = 101, chicha = 0
random seed = 101, chicha = 1

This is efficient when you want to update AI strategy and play against previous version. Tactics of each player can be set with "tactics" of setup_match.json.

akochan's People

Contributors

critter-mj avatar equim-chan avatar hguandl avatar nemobytedancer avatar hyskylord avatar kazuau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.