skip to navigation
skip to content

Not Logged In

tictactoelib 0.2.4

Ultimate Tic Tac Toe game logic (Lua and Python bindings)

This library allows to easily create front-ends for ultimate-tic-tac-toe game. It takes care of game rules, validating the arguments, calling the right functions.

run.lua is an example how this library can be used. To try out:

tictactoelib/run.lua \
    tictactoelib/examples/dumb_player.lua \
    tictactoelib/examples/dumb_player.lua

The file takes two arguments: Lua files, which implement a player. tictactoelib/examples/dumb_player.lua is a demo player which marks a first available slot. Command-line example above makes it fight with itself.

See comments in tictactoelib/examples/dumb_player.lua how to implement a player (it could also be something that takes events from UI).

For human-readable game rules, see ultimate-tic-tac-toe’s website.

Compatibility

Library is written in pure Lua, is tested to be compatible with Lua5.1, Lua5.2 and luajit.

 
File Type Py Version Uploaded on Size
tictactoelib-0.2.4.tar.gz (md5) Source 2014-04-28 13KB
  • Downloads (All Versions):
  • 17 downloads in the last day
  • 88 downloads in the last week
  • 129 downloads in the last month