Skip to content

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

License

Notifications You must be signed in to change notification settings

fairhopeweb/tic-tac-toe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 BroadcastChannel.

Features

  • Real-time multiplayer game
  • Global persistent game state using Deno KV
  • Synchronizes game state between clients using BroadcastChannel
  • 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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%