Skip to content

sl4m/tic-tac-toe-smalltalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

 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!

About

Tic Tac Toe and SUnit tests written in GNU Smalltalk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published