Skip to content

gphan/simple-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Console Tic-Tac-Toe

I wrote a console command line version of Tic Tac Toe in Ruby and Scala. The game always starts off as you are X, and then you play against the AI. When the game ends, you switch marks (you become O, etc).

Upon a new game, you switch sides and play O and so on and so forth.

The AI is using alpha-beta pruning for it's minimax tree.

Play

To run the game, clone this repo, and then run:

ruby game.rb

Scala

Build the scala files and run the Game object.

Purpose of this game

  • Learning basic Ruby
  • Learning basic Scala
  • Learning basic AI and game theory

About

A simple command line game of Tic Tac Toe in which you play against an AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published