An open API service indexing awesome lists of open source software.

https://github.com/toniogela/goose-game-java

Goose Game solution that I had to do for a past interview
https://github.com/toniogela/goose-game-java

interview java

Last synced: 9 months ago
JSON representation

Goose Game solution that I had to do for a past interview

Awesome Lists containing this project

README

          

# The Goose Game
This project was developed as a response to an hiring interview.

This is an interactive console game whose aim is to move a player from the cell 1 to cell 63.

You can add a player typing `add [P/p]layer `

You can move an existing player typing `move ` or `move n,m` where `n` and `m` are the single dice throw results (obviously they have to be between 1 and 6)

During the path there are some bonus cells with a custom behaviour. Discover them!

You have the ability to prank other players: when you step in a cell populated by another player, that player will return to your previous cell.

Enjoy!

![Gameplay example](/Usage.gif)

## Installing instuctions

The game requires `java 8+` and [maven](https://maven.apache.org/download.cgi) to be built and run.

Once pulled the project, move in the directory (it contains a `pom.xml` file) and run `mvn clean package -U`

Once compiled you'll find a file named `goosegame-0.0.1-SNAPSHOT-jar-with-dependencies.jar` in the newly created `target` folder.

Run the jar using `java -jar goosegame-0.0.1-SNAPSHOT-jar-with-dependencies.jar`