0% found this document useful (0 votes)
9 views

Computing Documentation

This document outlines a text-based adventure game called "Dungeon Run" created using Java. It contains details of the problem being solved such as allowing the player to escape from a dungeon by overcoming challenges and encounters with monsters. The document outlines the required inputs and outputs of various methods used in the game, such as choosing paths, answering questions correctly, and having an inventory. The goal is to provide an engaging game experience for those who enjoy text-based adventure and escape games.

Uploaded by

Leo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Computing Documentation

This document outlines a text-based adventure game called "Dungeon Run" created using Java. It contains details of the problem being solved such as allowing the player to escape from a dungeon by overcoming challenges and encounters with monsters. The document outlines the required inputs and outputs of various methods used in the game, such as choosing paths, answering questions correctly, and having an inventory. The goal is to provide an engaging game experience for those who enjoy text-based adventure and escape games.

Uploaded by

Leo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Leonardo Distinto (0142061A) SEC Computing 2024

Table Of Contents
CHAPTER 1: DEFINITION OF THE PROBLEM..........................................................2
DESCRITION OF THE SCOPE OF THE PROBLEM TO BE TACKLED.......................2
STATEMENT OF THE RESULTS REQUIRED..........................................................3
DETAILS OF THE INPUT INFORMATION REQUIRED...........................................5
Chapter 2: Solution of The Problem.....................................................................8
ALGORITHM DESIGN..........................................................................................9
COMPUTER LISTING OF THE PROGRAM..........................................................10
DETAILS OF ANY SPECIAL DESIGN FEATURES..................................................22

1|Page
Leonardo Distinto (0142061A) SEC Computing 2024

SEC Coursework Documentation: Dungeon Run!

CHAPTER 1: DEFINITION OF THE PROBLEM

DESCRITION OF THE SCOPE OF THE PROBLEM TO BE TACKLED

2|Page
Leonardo Distinto (0142061A) SEC Computing 2024

Dungeon Run is a cool game in which you'll try to escape from a prison filled with monsters. You'll
have to overcome different challenges to escape and find out who is trying to kill you. If you mess
up, the game gives you another chance using for and while loops. Thanks to the arrays, you'll also
have an inventory where you can store your stuff, thanks to arrays. When you have to make choices
in the game, if statements help you decide what you do.

Anyone who likes to play text-based adventure escape games, like gamers or just people who like
that sort of thing, can play this project. When you start the game, the main menu has only two
options, "1) Tutorial" and "2) Start Playing" The tutorial is for beginners who don't know how to play,
and explains everything. If you already know how to play, you can simply choose the second option
and jump right into the game.

I chose this project because I love making video games and playing my own creations. It's also fun to
share them with others and see how they like it. I decided to use the Java programming language
because it's powerful, fast, and it's commonly used for game development.

One of the advantages of playing this game on a computer is that you can play it anywhere without
worrying about losing small pieces. Another advantage is that the computerized version prevents
cheating, so everyone plays fairly.

STATEMENT OF THE RESULTS REQUIRED


Method: IronOrWood()

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect one

Method: FightMonsterXylo()

Outputs Variables Type Comments


Xylophone xylophone String Outputs the word Xylophone
Interdisciplinar interdisciplinary String Outputs the word Interdisciplinary
y

Method: RightLeftHallway

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect answer
Zoophysiology Zoophysiology String Outputs the word Zoophysiology
Hyperpyrexial Hyperpyrexial String Outputs the word Hyperpyrexial

3|Page
Leonardo Distinto (0142061A) SEC Computing 2024

Method: FindingScrewdriver()

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect answer

Method: GuessPassword()

Outputs Variables Type Comments


1428 password int Stores the password

Method: KnifeInventory()

Outputs Variables Type Comments


Knife inventory[] String Stores the inventory of the player

Method: CDuse

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect answer
1, 2, 3, 4, 5 randomNumber int Chooses a random number between 1 and
5

Method: RightHallway()

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect answer

Method: LeftHallway()

Outputs Variables Type Comments


true , false correctAnswer boolean Chooses between the correct answer and
the incorrect answer

4|Page
Leonardo Distinto (0142061A) SEC Computing 2024

DETAILS OF THE INPUT INFORMATION REQUIRED


Method: TutorialMenu()

Inputs Variables Type Comments


1,2 tutorial int This asks the user if he wants the Tutorial or
just wants to start playing

Method: Tutorial()

Inputs Variables Type Comments


y,Y startGame String Asks the player if he wants to start playing the
game

Method: IronOrWood()

Inputs Variables Type Comments


1,2 woodIronStick int Makes you choose between a wood stick or
an iron bar
y,Y quitGame String Let’s you quit the game

Method: FightMonsterXylo()

Inputs Variables Type Comments


"Xylophone, Interdisciplinary" userInpu String Asks user to input the words
t correctly

Method: RightLeftHallway()

Inputs Variables Type Comments


1,2 RightLeftHallway Int Let’s player choose if to go left
or right
Zoophysiology, Hyperpyrexial userInput2 String Asks the user to input the words
correctly
y,Y quitGame String Let’s you quit the game

Method: FindingScrewdriver()

Inputs Variables Type Comments


1,2 upDownDrawer int Let’s the player pick between the top or
bottom drawer
y,Y quitGame String Let’s you quit the game

5|Page
Leonardo Distinto (0142061A) SEC Computing 2024

Method: OpeningVent()

Inputs Variables Type Comments


Quizzifications, userInput String Asks the user to input the words
Methoxybenzenes 2 correctly
y,Y quitGame String Let’s you quit the game

Method: GuessPassword()

Inputs Variables Type Comments


“1428” OR “Hint” OR ! guessPassword String User has to guess the password
”1428”
y,Y quitGame String Let’s you quit the game
y,Y quitGame String Let’s you quit the game

Method: VaultOpened()

Inputs Variables Type Comments


“1234”, code int Asks user to enter one of the 4 numbers
“6784”,
“9843”,
“4563”

Method: KnifeInventory()

Inputs Variables Type Comments


y, Y, n, N takeKnife String Makes the player choose if to get or not get the
knife

Method: CDinventory()

Inputs Variables Type Comments


y, Y, n, N takeCD String Makes the player choose if to get or not get the
CD

Method: CDuse

Inputs Variables Type Comments


Strawberry, userInput3 String Asks the user to input the words
Motivation correctly
y,Y quitGame String Let’s you quit the game

6|Page
Leonardo Distinto (0142061A) SEC Computing 2024

Method: RightHallway()

Inputs Variables Type Comments


1,2 RightLeftHallway int Let’s player choose if to go left or
right
Quizzifications, userInput String Asks the user to input the words
Methoxybenzenes correctly
y,Y quitGame String Let’s you quit the game

Method: LeftHallway()

Inputs Variables Type Comments


1,2 RightLeftHallway int Let’s player choose if to go left or right
Quizzifications, userInput String Asks the user to input the words
Methoxybenzenes correctly
y,Y quitGame String Let’s you quit the game

7|Page
Leonardo Distinto (0142061A) SEC Computing 2024

Chapter 2: Solution of The Problem

8|Page
Leonardo Distinto (0142061A) SEC Computing 2024

ALGORITHM DESIGN
Main Menu Flowchart:

9|Page
Leonardo Distinto (0142061A) SEC Computing 2024

COMPUTER LISTING OF THE PROGRAM


Class: ProjectGame

10 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

11 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

12 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

13 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

14 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

15 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

16 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

17 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

18 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

19 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

20 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

Class: mainGame

21 | P a g e
Leonardo Distinto (0142061A) SEC Computing 2024

DETAILS OF ANY SPECIAL DESIGN FEATURES

- Randomization: It was used in the “RightHallway()”, “RightHallway2()” and


“LeftHallway()” methods for randomizing a number from 1 till 5, and the player had
to guess to not be killed by the monster

- Decorated interface: There was decorated interface in the “Logo()” method, where it
displays the logo of the game, and the “Tutorial()” method, where there is a frame to
the rules as decoration

- Creating an instance of an object: An object was created in the “mainGame” class,


calling the “mainMenu()” method in the “ProjectGame” class

22 | P a g e

You might also like