Level 1 - HolmesSquad/Project-Three GitHub Wiki

Level 1 Help

Level 1 allows you to place a robot and different types of treasures and a score for each type. The robot will collect the closest treasure and gather as many as possible within a given time. The program will then sort and display the treasures by either ascending or descending order of scores.

Buttons

Start Button
Start Button
The Start Button will start the program by bringing up the Score Assignment Window.

Pause Button
Pause Button
The Pause Button will stop the timer and robot until the pause button is pressed again.

Level Select Button
Level Select Button
The Level Select Button opens the Level Select Window.

Windows

Score Assignment Window
Imgur
The Score Assignment Window allows you to assign a score each type a treasure, these scores are how the program sorts the treasure once the robot has finished collecting them or time runs out.

Treasure Window
Imgur
The Treasure Window allows you to select how many treasures you wish to place, the minimum is 2 and the maximum is 15 on Level 1.

Robot Window
Imgur
The Robot Window allows you to enter how many robots you'd like to place, on Level 1 the maximum is 2.

Timer Window
Imgur
The Timer Window allows you to enter a time limit for the robot to collect the treasure, a value must be entered here. If the robot doesn't collect any treasure then the program will not sort or complete.

Level Select Window
The Level Select Window lets you decide what level you wish to go to from each level.

Sort-by Window
Imgur
The sort by window allows you to decide whether to tell the program to sort the treasures by ascending or descending.

Treasures

Treasures are what the robot collects, each has a different colour and shape, the score is defined in the Score Assignment Window.
Square Treasure
Square Treasure
Shape = Square
Colour = Blue
Score =

Circle Treasure
Circle Treasure
Shape = Circle
Colour = Yellow
Score =

Triangle Treasure
Triangle Treasure
Shape = Triangle
Colour = Green
Score =

Robot

Robot
The robot collects the closest treasure and will continue to collect the treasure until it has it all or until time runs out.