Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Getting started

An Optimization game is very similar to a Solo game. This is why we adapted the example game "Fishy Adventures" to make it an optimization game.

It is suggested to follow the Solo game creation guide with the adapted version. The source code is available on GitHub:

What is an Optimization game?

As a Solo game, an Optimization game has test cases. Their purpose here is different as there is a score set to the player and a leaderboard. This score should scale in function of how optimized the player's solution is.

Let's take the example of Fishy Adventures:

Game preview

In the Solo version of this game, the purpose is to collect one egg. Here, there are several groups of eggs with values (the number of eggs in the group) and you cannot gather all of them. You will need to optimize the path you take to collect as many eggs as possible. See the Optimization games features for more details.

Import project

As stated in the Solo guide, you need to download the source code of the game. The Optimization version of the game is located on the optimization branch of the repository:

git clone
cd game-fishy-adventures
git checkout optimization

Then, import this project as an existing maven project into your IDE:

  • Eclipse: File > Import > Existing Maven Projects
  • IntelliJ IDEA: Import Project > Select game-tictactoe > Import project from external model > Maven
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content