command
module
Version:
v0.0.0-...-6f83e94
Opens a new window with list of versions in this module.
Published: Jun 3, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
TicTacToe
TicTacToe is a small microservice that acts as the backend for a tic tac toe game by using the Firebase realtime database.
Contents
Requirements
- Go v1.15.x installed
- golangci-lint installed on your local machine
- used for linting and detecting common errors
Getting started
-
Download the Go dependencies
$ go mod download
-
Clone (i.e make a copy) .env.example
to .env
and modify it as needed
-
Build and execute the microservice
$ make buildrun
API Documentation
The microservice exposes a Swagger UI interface on http://${HOST}:${PORT}/swagger/index.html
.
Implementation Status
- Allow only one move per player, i.e. one after the other
- Detect if a ‘POST /move’ call was made by a player or the Firebase function
- Serve correct status codes and descriptive response bodies for invalid input
- Sanity check input and game state
- Bonus points for detecting if a game will result in a draw / deadlock early on
- Detection does not happen early on.
- Provide unit tests
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.