Skip to main content

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

Project description

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.

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.2.4.tar.gz (13.8 kB view details)

Uploaded Source

File details

Details for the file tictactoelib-0.2.4.tar.gz.

File metadata

  • Download URL: tictactoelib-0.2.4.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tictactoelib-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ba1f0cfb6f15f6e33b9dd25c360a62d0acb1b4777cd6b4c6493c8d8c3004905f
MD5 9d12f12b2b2c6f0832500cd8f6d1df19
BLAKE2b-256 0f4227ad40c4fc89704173ebbde364bdc77efcc5a8121bf2840edf6303dfda34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page