Skip to content

A reimplementation of Bas van Opheusden's Four-in-a-row repo (https://github.com/basvanopheusden)

Notifications You must be signed in to change notification settings

WeiJiMaLab/ninarow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authorial Credit

This is a rewrite of Bas van Opheusden's Four-in-a-row implementation. Please consider him the author of this code for citation purposes.

This repository was written for compatibility with Python 3.10+ by Tyler Seip and is actively maintained by the members of Wei Ji Ma Lab.

Dependencies

This repository requires Python 3.10 or higher. On Mac, please ensure that pip is properly installed by running pip --version.

We strongly recommend that you run this in a virtual environment to prevent dependency errors python3 -m venv n-in-a-row

To build and stall the required packages, run the bash script at build.sh. Note that you may need to first make sure you can execute it: chmod 700 autobuild.sh.

./autobuild.sh

The script will build a folder called build which contains the necessary SWIG modules. It will also automatically prompt you to run tests and install the needed Python packages. If anything fails, you can always install and test manually following the instructions in legacy/README.md.

To fit a model, from the model_fitting directory run:

python model_fit.py <path_to_game_csv>

Commit Instructions

Contributors should run utils/precommit.sh from the utils/ directory before committing. The dependencies for this script are documented in the script itself.

Documentation

Documentation can be found at https://weijimalab.github.io/ninarow/

About

A reimplementation of Bas van Opheusden's Four-in-a-row repo (https://github.com/basvanopheusden)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 57.0%
  • Python 40.8%
  • SWIG 1.2%
  • Other 1.0%