Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.

primenumber/issen

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

issen

高速なOthelloAIの実装

This project isn't maintained anymore, moved to issen-rs.

ビルドと実行

  • C++14に対応したコンパイラと、 Boost C++ Librariesが必要
  • AVX2とBMIに対応したCPUでないと動作しません(Haswell以降)

初期化

$ cmake .

コンパイル

$ make

実行

ffotest

$ VAL_PATH=path/to/val src/issen --ffotest < input.pos

    ベンチ結果はこちら

Base81

オセロの盤面を4マスずつに分け、3^4 = 81通りをASCII文字に対応させることで盤面を16バイトのASCII文字列で表現できる。 空き=0, 黒石(or 自石)=1, 白石(or 相手石)=2として、

code = 32 * a[3] + 9 * a[2] + 3 * a[1] + a[0] + 33

盤面と文字との対応

 |ABCDEFGH
-+--------
1|[01][02]
2|[03][04]
3|[05][06]
4|[07][08]
5|[09][10]
6|[11][12]
7|[13][14]
8|[15][16]

About

オセロAIの高速な実装

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages