Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quasarbright/tic-tac-toe
online tic tac toe
https://github.com/quasarbright/tic-tac-toe
Last synced: 26 days ago
JSON representation
online tic tac toe
- Host: GitHub
- URL: https://github.com/quasarbright/tic-tac-toe
- Owner: quasarbright
- License: other
- Created: 2024-02-24T01:17:31.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-01T20:40:28.000Z (10 months ago)
- Last Synced: 2024-11-06T07:42:13.151Z (3 months ago)
- Language: Racket
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
tic-tac-toe
===========
online tic tac toeSystem requirements:
* If you want to host a peer-to-peer game directly from your computer, you must have [`ngrok`](https://ngrok.com) installed and configured.Install:
TODO make release and link to it
## Building from source
Requirements:
* [Racket](https://racket-lang.org/). tested on version 8.9 and 8.7
* `raco` pacakge manager (comes with Racket)First, clone the repository
Then install the package by navigating to the repository root and running
``` sh
raco pkg install
```You can run the program with
``` sh
racket main.rkt
```To create an executable, navigate to the repository root and run
``` sh
raco exe --ico icons/icon.ico --icns icons/icon.icns --embed-dlls -o exe/tic-tac-toe main.rkt
raco distribute dist exe/*
```This will create an executable in the `dist/` directory. On windows, it will be a standalone exe file. On macos, it will be a `bin/` directory with the executable inside, and a `lib/` directory containing the libraries needed to run the executable.
## Running the central server
run playit.gg.
navigate to the repository root and run
``` sh
cd private/simple-game-server
racket server.rkt
```The public hostname and port number are currently hard-coded in `private/simple-game-server/lui-menu.rkt`.
The private port number is hard-coded in `private/simple-game-server/server.rkt`.
You can view your playit.gg the tunnels here: https://playit.gg/account/tunnels
If you're not me and you want to get your own central server working, you'll have to change the hard-coded public hostname and port number to those in your playit.gg.