Tic Tac Toe and SUnit tests written in GNU Smalltalk
Smalltalk Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
TicTacToe
.gitignore
README.markdown
build
play.st

README.markdown

 1 | 2 | 3
---+---+---
 4 | 5 | 6
---+---+---
 7 | 8 | 9

Requirements

  • Mac OS X (should work on Linux/Windows)
  • GNU Smalltalk version 3.2.2

Easy Setup (for Mac OS X)

If you have homebrew, installing GNU Smalltalk is as easy as running brew install gnu-smalltalk. Otherwise, build it manually using the instructions here.

After building GNU Smalltalk, the TicTacToe library needs to be packaged. I have included a shell script that creates the package, runs the SUnit tests, and places the package in your ~/.st directory. The ~/.st directory is one of several places GNU Smalltalk looks to find packages. If the package built successfully, you should see the new directory in your home path and TicTacToe.star. *.star packages are nothing more than *.zip files.

To run the shell script, type the following in the project root:

./build

Running the Game

To run the game, type the following in the project root:

gst play.st

Running SUnit Tests

Simply run the same shell script used to build the package.

Credits

Thanks to bonzini and gnu-smalltalk IRC members for the help!