Difference between revisions of "The Labyrinth"
Line 1: | Line 1: | ||
{{1010PrAD|ProblemName=The Labyrinth | {{1010PrAD|ProblemName=The Labyrinth | ||
− | |Problem=For this problem, you will create a labyrinth. The user will be given a series of decisions to make in hope of making it to the treasure. For the simplicity sake, the labyrinth will very small. The input will be recorded using JOptionPane.showInputDialog and the output will be done with JOptionPane.showMessageDialog. The user will enter an integer based on their choice. If the user makes the wrong choice, the game will be over and the program will end. To complete this problem, you should have a good understanding of [[Control_Structures|Nested if statements]] as well as [[JOptionPane_Methods|JOptionPane Methods]].Design the labyrinth exactly as described below: | + | |Problem=For this problem, you will create a labyrinth. The user will be given a series of decisions to make in hope of making it to the treasure. For the simplicity sake, the labyrinth will very small. The input will be recorded using JOptionPane.showInputDialog and the output will be done with JOptionPane.showMessageDialog. The user will enter an integer based on their choice. If the user makes the wrong choice, the game will be over and the program will end. To complete this problem, you should have a good understanding of [[Control_Structures|Nested if statements]] as well as [[JOptionPane_Methods|JOptionPane Methods]]. Design the labyrinth exactly as described below: |
Revision as of 16:49, 3 April 2010
Back to the Program-A-Day homepage
ProblemFor this problem, you will create a labyrinth. The user will be given a series of decisions to make in hope of making it to the treasure. For the simplicity sake, the labyrinth will very small. The input will be recorded using JOptionPane.showInputDialog and the output will be done with JOptionPane.showMessageDialog. The user will enter an integer based on their choice. If the user makes the wrong choice, the game will be over and the program will end. To complete this problem, you should have a good understanding of Nested if statements as well as JOptionPane Methods. Design the labyrinth exactly as described below:
|
SideSectionTitle
An image or By Students section | |
---|---|---|
Solution | ||
Code |