Skip to content

Examples of Tic-Tac-Toe utilizing minimax in a variety of languages

Notifications You must be signed in to change notification settings

flyingmachine/minimax-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minimax Demonstrated Using Tic-Tac-Toe in Ruby, Lisp and Haskell

Ruby

To run the ruby version, make sure tictactoe.rb has execute privileges and run ./tictactoe.rb.

Common Lisp

For the lisp version, you need install a Lisp implementation. I use clisp. On a mac, you can install that with “brew install clisp”.

After that, cd to the “phase1” directory and run clisp in your shell. When clisp loads, run (load 'tictactoe)

Enter (exit) to end the session.

Clojure

Enter the fms.tictactoe namespace and run (start)

Haskell

Compile with ghc —-make tictactoe.hs and run ./tictactoe or load it into ghci with :l tictactoe.hs and run main.

Instructions for installing the Glasgow Haskell Compiler (GHC) can be found here: http://www.haskell.org/platform/

About

Examples of Tic-Tac-Toe utilizing minimax in a variety of languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published