tic-tak-toe

module
v0.0.0-...-ef3111a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: MIT

README

tic-tak-toe

Just simple investigations/attempts of tic-tak-toe game on

  • Golang
  • Websockets
  • Redis
  • Docker

Features

  • Multiplayer
  • Horizontal scale

Run server

With composer

Complete variant with Redis and Nginx integration

cd ./.cloud/compose/
docker-compose up -d
Server configuration

You can customize options via ENV variables. All app vars are starting with TTT_

Variable name Default Description
TTT_ADDR :8080 Service network address
TTT_REDIS_ADDR redis:6379 Connection credentials for Redis. By default redis name is docker-compose service name. Change if you need

Run client

Open http://you_lan_ip:8080/ or http://localhost:8080/ to start new game session. You have to have opponent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL