Skip to main content

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

Project description

This library should allow 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/player1.lua \
    tictactoelib/examples/player1.lua

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

See tictactoelib/examples/player1.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 compatible with Lua5.1 and Lua5.2.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tictactoelib-0.0.4.tar.gz (11.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page