Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

jdesrosiers/et3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe

A Tic Tac Toe game written in Elm.

Setup

Make sure you have elm and elm-test installed

npm install -g elm elm-test

Install dependencies

elm package install

Build

The build script will run tests and build the site to the ./build directory.

bin/build.sh

The ./build directory will contain a static site that can be be viewed with any server that serves static web pages. I use the following because it's easy and familiar, but any server will do.

php -S localhost:8000 -t build/

Implementation Notes

I designed the app to be able to support any two player Tic Tac Toe like game. For example, to create 4x4 Tic Tac Toe, you only need to provide an HTML view and the game's Rules. Everything else should just work.

The AI uses a depth limited minimax algorithm with alpha-beta pruning.

About

Tic Tac Toe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published