|
|
This Tic-Tac-Toe game is written in
Ruby, a strictly object-oriented
scripting language from Japan.
Ruby/Gtk, a
Gtk+ wrapper library for Ruby, is used
for the user interface. Ruby and Ruby/Gtk are available for both Unix
and Windows platforms. On this website you can download the game and
read source code extracts demonstrating some of Rubys possibilities and limits. The game
implements a simple rule-based AI (easy) and a variation of minimax (negamax, hard).
Download: tictactoe-0.8.1.tar.gz (19k)
[changelog]
[older versions]
Installation (Linux):
tar xvfz tictactoe-0.8.1.tar.gz
tictactoe-0.8.1/tictactoe.rb
or, for system-wide installation in /usr/games:
cd tictactoe-0.8.1
make install
You might need to install Ruby and Ruby/Gtk before, most Linux distributions include
binary packages.
Debian users simply type
apt-get install tictactoe
to install Ruby, Ruby/Gtk, and this game (from testing or unstable, thanks to
Michael Ablassmeier for packaging (and the Makefile)).
Windows users might want to try this
preconfigured Gtk-enabled ruby package or
the more generic
ruby installer build.
|

|
|
|
|