Skip to content

Btsan/generate_tictactoe

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
 
 
 
 
 
 

generate_tictactoe

Tic-Tac-Toe board state generator (along with some heuristic calculations)

Recursively generates all 5478 legal game states for tic-tac-toe.

e.g. let X be 1 and O be -1

 then the board:
 
  1 |    |   
 ---+----+---
 -1 | -1 |   
 ---+----+---
  1 |  1 | -1
 
 is represented as:
 
 1 0 0 -1 -1 0 1 1 -1

Heuristics

The provided C++ code has commented out heuristic calculation code, used to augment the generated data for use in machine learning programs.

The augmented dataset was used to prototpe a weakly supervised training program for this checkers AI

Tool(s)

Just C++ 11 and the g++ compiler.

About

Tic-Tac-Toe board state generator (along with some heuristic calculations)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published