mariusbreivik / mastermind

A kotlin implementation of the boardgame Mastermind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A kotlin implementation of the board game Mastermind

This implementation uses Spring Boot to create a REST API for the Mastermind board game, 
providing endpoints to start a game, make guesses, and check the status of the game.

Start Game server

Run start.sh

Start a new game

$ curl -X POST http://localhost:8080/mastermind/start

Make a guess

curl -X POST http://localhost:8080/mastermind/{gameId}/guess -H "Content-Type: application/json" -d '{"guess": ["RED", "GREEN", "BLUE", "YELLOW"]}'

Check Game Status:

curl http://localhost:8080/mastermind/{gameId}/status

About

A kotlin implementation of the boardgame Mastermind

License:The Unlicense


Languages

Language:Kotlin 99.1%Language:Shell 0.9%