You'll need to know how to make Java animations for this. Please make a working gui in visual studios, java that looks like the image attached. In your code you can have whatever images you want to replace the images I want to use, but the layout should look the same.The images used here are the human image, the cave image (black circles), the upside down human image (representing number of pits fallen into), the arrow image (has number of arrows next to it), the bats image (representing number of encounters with a bat) and I don't want the other 3 images (you can see I have drawn an X on it). Each cave image has a number associated with it, and each cave has 3 other cave room numbers it is connected to. The purpose of this gui/game is to kill the wumpus, an animal that is randomly located in one of the rooms by sucessfully shooting an arrow into that room.
In the code, the console should keep updating the user whenever they make a move. The human image should start on a random cave image, and when the user clicks on the cave image they want to move to (the image should work as a button) the human image should move across a line path to that cave image. Then in the console, the user should be updated on which cave number they are currently in, and which cave numbers that cave is connected to. Each cave image has a cave number associated with it. In 2 caves (whose cave number can be chosen randomly) there are bottomless pits. To save yourself from the bottomless pit, the user should be able to answer trivia questions. Basically if the user clicks on a cave with a bottomless pit, the number next to the upside down human image should increase by 1, and then a screen pops up showing a trivia question with 4 multiple answer choices that the user has to be able to choose. The user has to answer three trivia questions when they fall into a bottomless pit, and if they answer at least 2 out of 3 correctly, they go back into the game. They also get 2 more arrows into their inventory. Otherwise if they don't answer 2/3 correctly, the game ends. In 2 caves (whose cave number can be chosen randomly) there are bats. If you go into a room with a bat, you automatically get relocated into another room, and the number next to the bat image should increase by 1. Now with every move the user gets to make, they also have the option to use an arrow. The user starts with 3 arrows (Number 3 next to the arrow image) and they can shoot an arrow by typing in "Shoot an arrow into ____ (typing in the room number)" in the console. The room number that they can shoot an arrow into depends on the room number they are currently in. Remember each room number is connected to 3 other rooms, so the room number they want to shoot an arrow into will depend on whether they are connected to that room. Otherwise the program should not allow them to shoot an arrow into that room. When that message is typed in, the console should say "An Arrow was shot into room number ___" or "Invalid." If you shoot an arrow into the room with the Wumpus, the game should say "GAME OVER!" and stop. If you run out of arrows you die. If you shoot an arrow and miss hitting the wumpus, the wumpus may move 2 to 4 rooms away. If it does the user is updated in the console. Also if you enter the room the wumpus is in, you get 5 trivia questions and must asnwer at least 3 of 5 right or else you die. If you do answer the trivia questions right, the wumpus is relocated and the game starts over. So there are 3 ways you can die: If you enter the room with the wumpus and fail to answer 3/5 questions at least, if you enter a room with a bottomless pit and fail to answer 2/3 questions at least, or if you run out of arrows (number of arrows next to arrow image becomes zero).
Also throughout the game, the console should update the user with Warnings. The Warnings will be depending on what obstacles are nearby:
Wumpus is in connected room: (Console says) "I smell a wumpus!")
Bat is in connected room: (Console says) "Bats nearby!")
Pit is in connected room: "I feel a draft"