/go-docker-ex

Primary LanguageGoMIT LicenseMIT

Hex MathRush

MathRush is simple math game which greatly inspired by this game.

It is build using client & server architecture. The client communicate with server using REST API defined in http_api.md.

It is intended for showcasing implementation of Hexagonal Architecture. Hence the name Hex MathRush.

Game Flow

The game flow itself is pretty simple, basically user just need to answer the math problem quickly & correctly to make the score higher. Game will end when either user is too slow answering the question or choose the wrong answer.

Here is the flowchart of the game:

Game Flow

How to Run

This app is powered by docker. So make sure to install it before running below command:

> make run-mem-server

Upon success, your console should output message like following:

2022/04/01 15:53:42 server is listening on :9190...