Skip to content

モンテカルロ法を用いた4目並べゲーム

License

Notifications You must be signed in to change notification settings

ryo-manba/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4目並べ

Requirement

  • gcc or Clang
  • GNU Make

Usage

git clone https://github.com/ryo-manba/connect4
cd connect4 && make
./connect4

How to play?

1.モードを選択します。

game screenshot

2.行番号を選択しコマを配置していきます。

game screenshot

3.縦・横・斜めいずれかに、先に4コマ並べた方が優勝です。

Features

CPUのアルゴリズムではモンテカルロ法を利用しています。

各行ごとのシミュレーション回数は、

  • EASY : 25
  • NORMAL : 100
  • HARD : 500

となっています。

game screenshot

もっとも勝利数が多いものを選択します。


またincludes/Const.hpp

#define COL_LEN 6
#define ROW_LEN 7

を変更することで盤面のサイズを変更することも可能です。

game screenshot

Author

twitter

Licence

All code is released under the MIT license

About

モンテカルロ法を用いた4目並べゲーム

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages