![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@socialgorithm/uttt
Advanced tools
Ultimate Tic Tac Toe Algorithm - Game Server
This is a system intended for games & hackathons mainly, for teams to write their own bot and compete against other bots.
They will be playing games of "Ultimate Tic Tac Toe", which provides a great opportunity for learning, predicting moves...
You can directly deploy the server to Heroku for a quick start:
When deploying, choose any available App Name (or let Heroku decide for you), and click on Deploy. Once it's finished browse to https://{app-name}.herokuapp.com
and you should see the server welcome message.
If you open our web client, you can then connect it to the server by clicking on "Connect" and entering https://{app-name}.herokuapp.com
as the server host.
$ npm install -g @socialgorithm/uttt
By default, the server will start in online mode and listen for players on port 3141
.
By default the server will have players play 1000 games per session.
You can launch the server using:
$ uttt
Options:
uttt
Ultimate Tic Tac Toe - Game Server
Options
--verbose The input to process.
-v, --version Display the server version
-p, --port 3141 Port on which the server should be started (defaults to 3141)
-g, --games 1000 Number of games to play, defaults to 1000
-t, --timeout 100 Milliseconds after which a player loses (defaults to 100)
-h, --help Print this guide
Synopsis
$ uttt --games 100
$ uttt --port 5000
$ uttt --help
When running in online mode you can also use env variables to override the settings (which is very useful when deploying to a server for example)
PORT
overrides the portTTT_TIMEOUT
overrides the timeoutTTT_GAMES
overrides the number of games that are played per roundThe server uses the ultimate-ttt
Nodejs implementation of the game to validate and verify game states.
If you're developing a client in JavaScript you can also use that package to maintain your local state easily.
This repository includes a test file that can be run against a custom client to verify that it does the basics right.
Simply copy tests/client.test.js
and point it to your implementation. The tests can be run by installing ava
and then adding it as the test runner in your package.json
file.
FAQs
Ultimate Tic Tac Toe Algorithm - Game Server Edit
We found that @socialgorithm/uttt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.