The rock-paper-scissors-well game is an evolution of the rock-paper-scissors game.

  • By Nur Islam
  • Last update: Aug 15, 2022
  • Comments: 0

rock-paper-scissors-well-game

The rock-paper-scissors-well game is an evolution of the rock-paper-scissors game.

Game rules:

  • Scissors beats paper
  • Paper beats rock and well
  • Rock beats scissors
  • Well beats rock and scissors

Test

To run the tests, run the following commands:

$ go test ./...

Run

To run the service, run the following commands:

$ go build
$ go run main.go

Run with Docker Compose

To run the service from docker compose, run the following commands:

$ docker-compose up

the application will be running on http://localhost:8080

Available Endpoint (e.g. cURL)

curl --location --request POST 'http://localhost:8080/rpsw/play' \
--header 'Content-Type: application/json' \
--data-raw '{"move": "well"}'
- - - - - - - - - -

Download

rock-paper-scissors-well-game.zip