Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/denoland/tic-tac-toe

A global, real-time multiplayer TicTacToe game for Deno 🦕
https://github.com/denoland/tic-tac-toe

deno fresh kv real-time tic-tac-toe

Last synced: 6 days ago
JSON representation

A global, real-time multiplayer TicTacToe game for Deno 🦕

Awesome Lists containing this project

README

        

# Tic-Tac-Toe

This is a global, real-time multiplayer Tic-Tac-Toe game written in Deno. It
persists game states in a Deno KV store, and synchronizes game state between
clients using the `watch()` feature of Deno KV.

## Features

- Real-time multiplayer game
- Persistent game state and coordination using Deno KV
- Uses GitHub OAuth for authentication

This project is hosted on Deno Deploy:

- Served from 35 edge locations around the world
- Scales automatically
- Data is a globally distributed Deno KV store with no setup required
- Code is deployed automatically when pushed to GitHub
- Automatic HTTPS (even for custom domains)
- Free for most hobby use cases

## Example

You can try out the game at https://tic-tac-toe-game.deno.dev

![Screenshot](./static/screenshot.png)

## Development

To develop locally, you must create a GitHub OAuth application and set the
following environment variables in a `.env` file:

```
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...
```

You can create a GitHub OAuth application at
https://github.com/settings/applications/new. Set the callback URL to
`http://localhost:8000/auth/oauth2callback`.

You can then start the local development server:

```
deno task start
```