Highlights
Miners can move back a short distance but not all the way to the lift or to the coal face, just far enough for the first or last miner to enter the cave. Only the miner from either end of the combined miner group can enter the cave and conversely, the miner in the cave can only join miners in the tunnel at either end of queue. The miner group nearest the cave always stops at the approach edge of the cave.
The challenge for the player is to work out how the two groups of miners can pass each other in the tunnel, in the least number of moves. Player (user) solves the puzzle by instructing the computer to move the miners according to the game’s rules.
Part 1 Create a Command Line Interface (CLI) application MinePuzzleCLI that prints to the screen a mine tunnel with the random number of blue and random number orange miners. You will need to do two tasks:
Choose GUI components that reduce user error and provide feedback for the player. “left” and “right” buttons move miners to the left/right of the cave. Button “in” moves a miner into the cave and button “out” returns the miner from the cave to the tunnel.
Consider the following as a minimum requirement:
Sample Screen Shots
The full game is completed in at least 3 moves. Moving blue minors through the cave would require 12 moves.
Code Help: Write code marked with stars (//*****)
This Computer Science Assessment has been solved by our Computer Science experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.