Java Game Code

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 21

import java.util.

Random;
import java.util.Scanner;

public class rpgdungeon {

public static String Name;


public static int HP;
public static int maxHP;
public static int atk;
public static int lives = 3;
static Random rand = new Random();
static Scanner UI = new Scanner(System.in);
public static int currentFloor = 1;

public static void specialScenarioOne() {


System.out.println("Within the eerie crypt, the stone walls seem to close in
as you navigate through the winding tunnels. As you reach a junction, you face two
choices—one path leads to a dead end with ancient inscriptions, and the other
twists further into the darkness.");
currentFloor++;
}

public static void specialScenarioTwo() {


System.out.println("The subterranean catacombs echo with your footsteps. At
a crossroads, you encounter two tunnels—one adorned with faintly glowing crystals,
and the other leading to a cryptic dead end with an old, rusted gate.");
currentFloor++;
}

public static void specialScenarioThree() {


System.out.println("Deep within the haunted mansion, a series of secret
passages and hidden doors create a perplexing maze. As you explore, you find two
routes—one winding through a shadowy corridor, the other ending abruptly in a
ghostly apparition.");
currentFloor++;
}

public static void specialScenarioFour() {


System.out.println("In the heart of an enchanted forest, the labyrinthine
maze is filled with twisted trees and tangled vines. You stand at a divergence—one
path takes you through an overgrown thicket, and the other leads to a mysterious
dead end with ancient ruins.");
currentFloor++;
}

public static void specialScenarioFive() {


System.out.println("As you navigate the technological maze of a futuristic
facility, holographic displays guide your way. At a critical point, two paths open
up—one through a high-tech chamber, and the other leading to a dead end with
malfunctioning machinery.");
currentFloor++;
}

public static void specialScenarioSix() {


System.out.println("Within a maze of shifting illusions, magical mirrors
create a disorienting environment. As you approach a junction, you must choose
between a path reflecting a serene garden and another leading to a dead end
surrounded.");
currentFloor++;
}

public static void specialScenarioSeven() {


System.out.println("Within the crypt, ancient symbols guide your way. At a
crossroads, a decision awaits—one path descends into a pitch-black chamber, and the
other leads to a dead end adorned with cryptic markings.");
currentFloor++;
}

public static void specialScenarioEight() {


System.out.println("The abandoned laboratory's maze is filled with forgotten
experiments. As you approach a junction, you face two choices—one path leads
through flickering lights, and the other to a dead end with shattered glass and
sparking wires.");
currentFloor++;
}

public static void specialScenarioNine() {


System.out.println("Deep within the mystical forest, an enchanted maze
awaits. At a fork, you encounter two routes—one through a magical glade, and the
other leading to a dead end surrounded by impenetrable thorns.");
currentFloor++;
}

public static void specialScenarioTen() {


System.out.println("Navigating the alien spaceship's labyrinthine corridors,
you find yourself at a crossroads. One path leads to a pulsating energy chamber,
while the other takes you to a dead end where strange extraterrestrial things lie
dormat.");
currentFloor++;
}

public static void specialScenarioEleven() {


System.out.println("In the heart of an enchanted forest, the labyrinthine
maze is filled with twisted trees and tangled vines. You stand at a divergence—one
path takes you through an overgrown thicket, and the other leads to a mysterious
dead end with ancient ruins.");
currentFloor++;
}

public static void specialScenarioTwelve() {


System.out.println("The underwater cavern maze resonates with echoes. As you
swim through the labyrinth, you face two choices—one path leads to a bioluminescent
chamber, and the other to a dead end where aquatic plants sway in the currents.");
currentFloor++;
}

public static void specialScenarioThirteen() {


System.out.println("In the steampunk city's underground maze, gears and
pipes create a complex network. At a junction, you have two options—one path leads
to a mechanical workshop, and the other to a dead end with malfunctioning steam
vents.");
currentFloor++;
}

public static void specialScenarioFourteen() {


System.out.println("The supernatural dimension's maze is filled with
ethereal pathways. As you float through the maze, you encounter two routes—one
through a spectral portal, and the other leading to a dead end where ghostly
apparitions linger.");
currentFloor++;
}

public static void specialScenarioFifteen() {


System.out.println("Within the ice cavern labyrinth, frost-covered walls
create a mesmerizing landscape. At a crossroads, you face a choice—one path winds
through an icy tunnel, and the other leads to a dead end with frozen
stalactites.");
currentFloor++;
}

public static void specialScenarioSixteen() {


System.out.println("Traversing the ancient ruins, you encounter a maze with
mysterious inscriptions. At a fork, you must choose—one path leads to a hidden
chamber, and the other to a dead end adorned with ancient hieroglyphs."");
currentFloor++;
}

public static void specialScenarioSeventeen() {


System.out.println("Within the virtual reality simulation, a digital maze
unfolds before you. As you navigate, you come to a junction—choose wisely, as one
path leads to a futuristic data hub, and the other to a dead end with glitching
code."");
currentFloor++;
}

public static void specialScenarioEighteenr() {


System.out.println("In the jungle labyrinth, vines and foliage create a
natural puzzle. At a crossroads, two paths beckon—one leads to a vibrant waterfall,
and the other to a dead end surrounded by carnivorous plants..”);
currentFloor++;
}

public static void specialScenarioNineteen() {


System.out.println("The cosmic maze twists through a nebula-filled void. As
you float through the astral pathways, you face a decision—one route leads to a
celestial observatory, and the other to a dead end where cosmic debris drifts..”);
currentFloor++;
}

public static void specialScenarioTwenty() {


System.out.println("In the clockwork city maze, gears interlock to form
intricate patterns. At a junction, you encounter two paths—one leading to a ticking
clock tower, and the other to a dead end with cogs and gears strewn across the
floor.”);
currentFloor++;
}

public static void specialScenarioTwentyOne() {


System.out.println("Within the enchanted library labyrinth, shelves of
books create a maze of knowledge. Choose a path—one leads to a realm of magical
tomes, and the other to a dead end where ancient scrolls lie untouched..”);
currentFloor++;
}

public static void specialScenarioTwentyTwo() {


System.out.println("The desert labyrinth winds through shifting sands. As
you reach a crossroads, you have two choices—one path leads to an oasis with
mirages, and the other to a dead end where sand dunes stretch endlessly.”);
currentFloor++;
}

public static void specialScenarioTwentyThree() {


System.out.println("Exploring the crystalline cavern maze, you encounter
luminescent gems. At a fork, decide—take the path to a cavern filled with glowing
crystals, or the one leading to a dead end with crystallized formations.”);
currentFloor++;
}

public static void specialScenarioTwentyFour() {


System.out.println("In the cyberpunk city’s holographic maze, neon lights
create a mesmerizing display. Choose a route—one leads to a high-tech plaza, and
the other to a dead end where holographic illusions fade away.”);
currentFloor++;
}

public static void specialScenarioTwentyFive) {


System.out.println("The mystical garden maze is filled with enchanting
flora. As you approach a junction, two paths unfold—one winds through a garden of
magical flowers, and the other to a dead end where thorny vines block your way.”);
currentFloor++;
}

public static void specialScenarioTwentySix() {


System.out.println("At the crossroads of the abyssal labyrinth, two tunnels
await. One leads to a bioluminescent coral reef, and the other to a dead end where
shadowy sea creatures lurk.”);
currentFloor++;
}

public static void specialScenarioTwentySeven() {


System.out.println("In the heart of the volcanic maze, molten lava flows
illuminate the pathways. Choose wisely—one route guides you to an ancient forge,
and the other to a dead end surrounded by searing hot magma..”);
currentFloor++;
}

public static void specialScenarioTwentyEight() {


System.out.println("Within the floating cloud maze, fluffy white paths
extend. Take a chance—one leads to a sky garden with floating islands, and the
other to a dead end where thunderclouds loom ominously.”);
currentFloor++;
}

public static void specialScenarioTwentyNine() {


System.out.println("Navigating the interdimensional maze, portals shimmer
in the air. Make a decision—one portal transports you to a mirrored realm, and the
other to a dead end where distorted echoes play tricks on your senses..”);
currentFloor++;
}
ublic static void specialScenarioThirty() {
System.out.println("Amidst the gears and propellers, two paths diverge. Opt
for the right one—to soar through the skies on a majestic airship—or the left,
leading to a dead end where defunct contraptions rust away.”);
currentFloor++;
}
public static void specialScenarioThirtyOne() {
System.out.println("In the frozen labyrinth, icy paths unfold. Make a choice
—one leads to a mesmerizing ice palace, and the other to a dead end where frostbite
creeps along the walls.");
currentFloor++;
}

public static void specialScenarioThirtyTwo() {


System.out.println("Amongst crumbling structures, two routes await
exploration. Venture forth—one leads to a chamber of ancient artifacts, and the
other to a dead end with hieroglyph-covered walls blocking your way.");
currentFloor++;
}

public static void specialScenarioThirtyThree() {


System.out.println("Within the bioengineered maze, genetically modified
plants create a living puzzle. Opt for the path leading to a healing garden, or the
other to a dead end where mutated flora poses a threat.");
currentFloor++;
}

public static void specialScenarioThirtyFour() {


System.out.println("Amidst the cosmic station, holographic signs guide your
way. Choose wisely—one route takes you to a futuristic entertainment hub, and the
other to a dead end where malfunctioning robots patrol.");
currentFloor++;
}
public static void specialScenarioThirtyFive() {
System.out.println("Within the eerie labyrinth, haunting whispers fill the
air. Pick your fate—one path leads to a spectral ballroom, and the other to a dead
end where ghostly apparitions block your passage.");
currentFloor++;
}

public static void specialScenarioThirtySix() {


System.out.println("Beneath the city, a subway labyrinth sprawls. Decide now—
one tunnel leads to a hidden underground market, and the other to a dead end where
the echoes of distant trains fade away.”);
currentFloor++;
}

public static void specialScenarioThirtySeven() {


System.out.println("Traversing the treetop maze, branches form intricate
patterns. Choose your course—one path leads to a canopy village, and the other to a
dead end where the creaking of branches masks lurking dangers.”);
currentFloor++;
}

public static void specialScenarioThirtyEight() {


System.out.println("In the futuristic virtual reality maze, digital illusions
abound. Decide swiftly—one route guides you to a virtual paradise, and the other to
a dead end where glitches distort the surroundings.”);
currentFloor++;
}

public static void specialScenarioThirtyNine() {


System.out.println("Within the moonlit cemetery labyrinth, tombstones cast long
shadows. Make your decision—one path leads to a spectral graveyard party, and the
other to a dead end where restless spirits roam.”);
currentFloor++;
}

public static void specialScenarioForty() {


System.out.println("Navigating the surreal dreamscape maze, illusions play
tricks on your senses. Make a choice—one route leads to a fantastical dreamscape,
and the other to a dead end where nightmares manifest.”);
currentFloor++;
}

public static void specialScenarioFortyOne() {


System.out.println("In the ancient tree-root maze, gnarled roots form intricate
paths. Choose wisely—one leads to an elven sanctuary, and the other to a dead end
where the roots entangle, blocking your way.”);
currentFloor++;
}

public static void specialScenarioFortyTwo() {


System.out.println("Within the cyberpunk alley maze, neon lights create a
vibrant urban spectacle. Decide now—one route leads to an underground hacker’s den,
and the other to a dead end where shadowy figures lurk.”);
currentFloor++;
}

public static void specialScenarioFortyThree() {


System.out.println("Trapped in the mirage desert labyrinth, optical illusions
abound. Choose your destiny—one path guides you to a hidden oasis, and the other to
a dead end where illusions dissipate, revealing a barren landscape.”);
currentFloor++;
}

public static void specialScenarioFortyFour() {


System.out.println("Within the steampunk airship maze, gears interlock to form
intricate patterns. At a junction, you encounter two paths—one leading to a soaring
airship, and the other to a dead end with defunct contraptions rusting away.”);
currentFloor++;
}

public static void specialScenarioFortyFive() {


System.out.println("Amidst the time-traveling maze, portals shimmer in the
temporal flux. Make a decision—one portal transports you to a historical era, and
the other to a dead end where time anomalies distort the passages.”);
currentFloor++;
}

public static void specialScenarioFortySix() {


System.out.println("Within the crystalline cavern maze, luminescent gems
illuminate your path. Decide now—one route guides you to a cavern filled with
glowing crystals, and the other to a dead end with crystallized formations.”);
currentFloor++;
}

public static void specialScenarioFortySeven() {


System.out.println("Navigating the celestial maze, stars twinkle in the cosmic
void. Choose wisely—one route leads to a cosmic observatory, and the other to a
dead end where celestial debris drifts.”);
currentFloor++;
}
public static void specialScenarioFortyEight() {
System.out.println("In the sunken city labyrinth, underwater currents create a
mysterious underwater world. Make a choice—one path leads to an ancient sunken
library, and the other to a dead end where eerie aquatic creatures lurk.”);
currentFloor++;
}

public static void specialScenarioFortyNine() {


System.out.println("Within the mythical mountain maze, towering peaks surround
you. Make a decision—one path leads to a hidden monastery, and the other to a dead
end where treacherous cliffs block your ascent.");
currentFloor++;
}

public static void specialScenarioFifty() {


System.out.println("In the intergalactic maze, cosmic anomalies shape the
pathways. Choose your course wisely—one route leads to an extraterrestrial
marketplace, and the other to a dead end where gravitational anomalies make
movement impossible.”);
currentFloor++;
}

public static void specialScenarioFiftyOne() {


System.out.println("Amidst the rainforest labyrinth, exotic flora creates a
vibrant tapestry. Decide swiftly—one path leads to a tropical paradise, and the
other to a dead end where poisonous plants lurk.”);
currentFloor++;
}

public static void specialScenarioFiftyTwo() {


System.out.println("In the high-tech space station maze, holographic displays
surround you. Make a choice—one route guides you to a futuristic research lab, and
the other to a dead end where malfunctioning AI poses a threat.”);
currentFloor++;
}

public static void specialScenarioFiftyThree() {


System.out.println("Within the haunted mansion labyrinth, eerie sounds fill the
air. Pick your fate—one path leads to a grand ballroom, and the other to a dead end
where ghostly illusions block your way.”);
currentFloor++;
}

public static void specialScenarioFiftyFour() {


System.out.println("Trapped in the mystical mirror maze, reflections distort
reality. Choose your destiny—one route guides you to a magical realm, and the other
to a dead end where endless reflections disorient your senses.”);
currentFloor++;
}

public static void specialScenarioFiftyFive() {


System.out.println("In the ancient colosseum maze, echoes of gladiator battles
linger. Decide now—one path leads to a hidden arena, and the other to a dead end
where crumbling arches block your way.”);
currentFloor++;
}

public static void specialScenarioFiftySix() {


System.out.println("In the mythical floating island maze, clouds form pathways.
Decide wisely—one route leads to a sky citadel, and the other to a dead end where
misty clouds obscure your vision.”);
currentFloor++;
}

public static void specialScenarioFiftySeven() {


System.out.println("Within the enchanted underwater garden maze, bioluminescent
sea life illuminates your way. Make a choice—one path leads to a mermaid sanctuary,
and the other to a dead end where mysterious underwater currents pose a danger.”);
currentFloor++;
}

public static void specialScenarioFiftyEight() {


System.out.println("Navigating the robotic labyrinth, metallic structures
surround you. Choose your course—one route guides you to a high-tech control
center, and the other to a dead end where malfunctioning robots block your path.");
currentFloor++;
}

public static void specialScenarioFiftyNine() {


System.out.println("In the ancient pyramid maze, hieroglyphs tell tales of
ancient civilizations. Make a decision—one path leads to a hidden chamber, and the
other to a dead end where booby traps await.”);
currentFloor++;
}

public static void specialScenarioSixty() {


System.out.println("Within the dimensional rift maze, portals shimmer with
unknown energies. Choose your destiny—one route leads to a parallel universe, and
the other to a dead end where reality warps unpredictably.”);
currentFloor++;
}

public static void specialScenarioSixtyOne() {


System.out.println("Amidst the carnival maze, vibrant colors and festive sounds
surround you. Decide now—one path leads to a magical carousel, and the other to a
dead end where illusionary clowns block your way.”);
currentFloor++;
}

public static void specialScenarioSixtyTwo() {


System.out.println("In the neon-lit cyber alley maze, holographic
advertisements light up the night. Make a choice—one route guides you to a
futuristic nightclub, and the other to a dead end where flickering neon lights
create disorienting illusions.”);
currentFloor++;
}

public static void specialScenarioSixtyThree() {


System.out.println("Within the subterranean crystal cave maze, precious
gemstones glisten. Pick your fate—one path leads to a cavern of crystal wonders,
and the other to a dead end where echoes of your own footsteps confuse your
direction.”);
currentFloor++;
}

public static void specialScenarioSixtyFour() {


System.out.println("Trapped in the magical mirror maze, reflections hold
secrets. Choose wisely—one route guides you to a portal to another realm, and the
other to a dead end where mirrored illusions distort your perception.”);
currentFloor++;
}

public static void specialScenarioSixtyFive() {


System.out.println("In the time-bending maze, portals to different eras beckon.
Decide now—one path leads to a historical epoch, and the other to a dead end where
temporal disturbances make navigation perilous.”);
currentFloor++;
}
public static void specialScenarioSixtySix() {
System.out.println("Within the undersea volcano maze, molten lava flows create
a dangerous terrain. Decide swiftly—one route leads to a hidden grotto, and the
other to a dead end where volcanic eruptions pose a threat.”);
currentFloor++;
}

public static void specialScenarioSixtySeven() {


System.out.println("Navigating the celestial bridge maze, constellations guide
your way. Make a choice—one path leads to a starlit bridge to another realm, and
the other to a dead end where cosmic energies interfere with your navigation.”);
currentFloor++;
}

public static void specialScenarioSixtyEight() {


System.out.println("In the enchanted carnival maze, magical illusions enchant
your senses. Choose your course wisely—one route guides you to a whimsical
funhouse, and the other to a dead end where deceptive mirrors confuse your
direction.");
currentFloor++;
}

public static void specialScenarioSixtyNine() {


System.out.println("Traversing the ancient catacomb maze, shadows play tricks
on your perception. Make a decision—one path leads to a hidden burial chamber, and
the other to a dead end where echoes of ancient whispers fill the air.”);
currentFloor++;
}

public static void specialScenarioSeventy() {


System.out.println("Within the quantum maze, reality shifts with every step.
Choose your destiny—one route leads to a nexus of possibilities, and the other to a
dead end where quantum anomalies disrupt your journey.");
currentFloor++;
}

public static void specialScenarioSeventyOne() {


System.out.println("Amidst the mystical fog maze, ethereal mists conceal hidden
wonders. Decide now—one path leads to an ancient oracle, and the other to a dead
end where illusions of phantom figures hinder your progress.”);
currentFloor++;
}

public static void specialScenarioSeventyTwo() {


System.out.println(“In the bioluminescent cave maze, glowing organisms light
your way. Make a choice—one route guides you to an underground oasis, and the other
to a dead end where deceptive reflections on the water surface lead you astray.”);
currentFloor++;
}
public static void specialScenarioSeventyThree() {
System.out.println("Within the alien flora maze, otherworldly plants create a
vibrant tapestry. Pick your fate—one path leads to a sanctuary of extraterrestrial
beauty, and the other to a dead end where carnivorous alien vines block your
way.”);
currentFloor++;
}

public static void specialScenarioSeventyFour() {


System.out.println("Trapped in the haunted shipwreck maze, ghostly echoes fill
the air. Choose wisely—one route guides you to a spectral pirate’s tavern, and the
other to a dead end where phantom ships create an eerie blockade.”);
currentFloor++;
}

public static void specialScenarioSeventyFive() {


System.out.println("n the interdimensional library maze, books contain
knowledge from parallel worlds. Decide now—one path leads to a cosmic repository,
and the other to a dead end where interdimensional rifts make navigation
chaotic.”);
currentFloor++;
}

public static void specialScenarioSeventySix() {


System.out.println("Within the mirage-filled desert maze, illusions of oases
and mirages confuse the senses. Make a decision—one route leads to a hidden
paradise, and the other to a dead end where shifting illusions disorient your
direction.”);
currentFloor++;
}

public static void specialScenarioSeventySeven() {


System.out.println("Navigating the time-loop maze, echoes of past and future
coalesce. Choose your course—one path leads to a temporal nexus, and the other to a
dead end where time loops trap you in a perpetual cycle.”);
currentFloor++;
}

public static void specialScenarioSeventyEight() {


System.out.println("In the mystical crystal labyrinth, enchanted gems guide
your way. Decide wisely—one route leads to a crystalline sanctuary, and the other
to a dead end where illusions of crystal reflections obstruct your path.”);
currentFloor++;
}

public static void specialScenarioSeventyNine() {


System.out.println("Within the haunted hospital maze, eerie whispers echo
through abandoned hallways. Make a choice—one path leads to a spectral medical
ward, and the other to a dead end where ghostly apparitions create an otherworldly
blockade.”);
currentFloor++;
}

public static void specialScenarioEighty() {


System.out.println("Amidst the celestial garden maze, celestial blooms create a
mesmerizing spectacle. Choose your destiny—one route leads to a garden of cosmic
wonders, and the other to a dead end where celestial thorns block your way.”);
currentFloor++;
}
public static void specialScenarioEightyOne() {
System.out.println("Within the cybernetic jungle maze, robotic vines create a
metallic labyrinth. Decide now—one route leads to a futuristic data nexus, and the
other to a dead end where malfunctioning cyborg creatures pose a threat.”);
currentFloor++;
}

public static void specialScenarioEightyTwo() {


System.out.println("Navigating the ethereal mist maze, unseen forces guide your
path. Make a choice—one path leads to a mystical realm of spirits, and the other to
a dead end where illusions of phantom bridges vanish beneath your feet.”);
currentFloor++;
}

public static void specialScenarioEightyThree() {


System.out.println("In the cosmic puzzle maze, constellations form intricate
patterns. Choose your course wisely—one route guides you to a celestial riddle, and
the other to a dead end where cosmic anomalies disrupt your navigation.”);
currentFloor++;
}

public static void specialScenarioEightyFour() {


System.out.println("Traversing the illusionary city maze, holographic buildings
create a mirage. Make a decision—one path leads to a digital marketplace, and the
other to a dead end where glitchy illusions obscure your way.”);
currentFloor++;
}

public static void specialScenarioEightyFive() {


System.out.println("Within the sunken temple maze, underwater currents conceal
hidden chambers. Pick your fate—one path leads to an ancient aquatic sanctuary, and
the other to a dead end where submerged illusions distort your perception.”);
currentFloor++;
}

public static void specialScenarioEightySix() {


System.out.println("Amidst the elemental maze, paths of fire and ice
intertwine. Decide now—one route leads to a chamber of elemental wonders, and the
other to a dead end where opposing forces create a perilous blockade.”);
currentFloor++;
}

public static void specialScenarioEightySeven() {


System.out.println("In the cosmic carnival maze, stars form a dazzling display.
Choose wisely—one path leads to a celestial carousel, and the other to a dead end
where distorted gravitational forces disrupt your movement.”);
currentFloor++;
}

public static void specialScenarioEightyEight() {


System.out.println("Within the crystallized forest maze, gem-covered trees
create a sparkling labyrinth. Make a choice—one route leads to an ethereal glade,
and the other to a dead end where crystalline illusions distort your perception.");
currentFloor++;
}

public static void specialScenarioEightyNine() {


System.out.println("Trapped in the time-warp maze, echoes of different eras
resonate. Choose your destiny—one path leads to a temporal junction, and the other
to a dead end where time anomalies create a chaotic whirlwind.”);
currentFloor++;
}

public static void specialScenarioNinety() {


System.out.println("In the mystical foggy swamp maze, wisps of magic guide your
way. Decide now—one route leads to an ancient druidic grove, and the other to a
dead end where illusions of phantom creatures hinder your progress.”);
currentFloor++;
}

public static void specialScenarioNinetyOne() {


System.out.println("Navigating the futuristic space elevator maze, gravity-
defying paths unfold. Make a decision—one path leads to a high-tech spaceport, and
the other to a dead end where malfunctioning anti-gravity fields pose a threat.”);
currentFloor++;
}

public static void specialScenarioNinetyTwo() {


System.out.println("Within the crystalline mountain maze, gem-covered peaks
surround you. Choose your course—one route leads to a hidden crystal cave, and the
other to a dead end where illusions of treacherous cliffs block your ascent.”);
currentFloor++;
}

public static void specialScenarioNinetyThree() {


System.out.println("In the extraterrestrial garden maze, alien flora creates a
vibrant tapestry. Pick your fate—one path leads to an otherworldly oasis, and the
other to a dead end where carnivorous alien plants pose a threat.”);
currentFloor++;
}

public static void specialScenarioNinetyFour() {


System.out.println("Within the labyrinthine city ruins, remnants of a bygone
era surround you. Choose wisely—one route leads to a hidden underground archive,
and the other to a dead end where collapsed structures create an impassable
barrier.”);
currentFloor++;
}

public static void specialScenarioNinetyFive() {


System.out.println("Amidst the infernal maze, paths of lava and brimstone
intertwine. Decide now—one route leads to a demonic citadel, and the other to a
dead end where flames and shadows create a perilous blockade.”);
currentFloor++;
}

public static void specialScenarioNinetySix() {


System.out.println("Trapped in the interdimensional carnival maze, reality-
bending attractions surround you. Choose your destiny—one path leads to a whimsical
circus, and the other to a dead end where shifting dimensions disorient your
senses.”);
currentFloor++;
}

public static void specialScenarioNinetySeven() {


System.out.println("Within the haunted hospital maze, eerie whispers echo
through abandoned hallways. Make a choice—one path leads to a spectral medical
ward, and the other to a dead end where ghostly apparitions create an otherworldly
blockade.”);
currentFloor++;
}

public static void specialScenarioNinetyEight() {


System.out.println("In the mystical mirror maze, enchanted reflections distort
reality. Decide wisely—one route leads to a magical realm, and the other to a dead
end where infinite reflections create a confusing labyrinth.”);
currentFloor++;
}

public static void specialScenarioNinetyNine() {


System.out.println("Beneath the alien moon maze, unearthly landscapes unfold.
Pick your fate—one path leads to the gates of the end, and the other to a dead end
where gravitational anomalies disrupt your navigation.”);
currentFloor++;
}
public static void main(String[] args) throws InterruptedException {
maxHP = 5000000;

System.out.println("Welcome To The Dungeon of Mazi");


Thread.sleep(1000);

System.out.println("Please Input Your Name ");


Name = UI.nextLine();
Thread.sleep(1000);

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
System.out.println(Name + " is a lost adventurer.");
Thread.sleep(1000);

System.out.println("Today, he goes to the city to buy a medicine for


his sick mother.");
Thread.sleep(1000);

System.out.println("But unfortunately, on his way home, a dungeon gate


opened right in front of him.");
Thread.sleep(1000);

System.out.println("Not being able to stop his body from walking


immediately, he accidentally goes inside the dungeon.");
Thread.sleep(1000);

System.out.println(Name + "'s Point of View:");


Thread.sleep(1000);

HP = maxHP;
atk = 5000;
Thread.sleep(10000);
StartRoom();
}

public static void StartRoom() throws InterruptedException {


System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\
n--------------------------------------------------------------------------------")
;
System.out.println("Welcome to the Dungeon of Mazi, " + Name + "!");
System.out.println("You find yourself in a dungeon maze with 100 floors
filled with billions of monsters.");

System.out.println("---------------------------------------------------------------
-----------------");
describeFloor();
}
public static void describeFloor() {
System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\
n--------------------------------------------------------------------------------")
;
while (currentFloor <= 100) {
if (currentFloor == 1) {
specialScenarioOne();
} else if (currentFloor == 2) {
specialScenarioTwo();
} else if (currentFloor == 3) {
specialScenarioThree();
} else if (currentFloor == 4) {
specialScenarioFour();
} else if (currentFloor == 5) {
specialScenarioFive();
} else if (currentFloor == 6) {
specialScenarioSix();
} else if (currentFloor == 7) {
specialScenarioSeven();
} else if (currentFloor == 8) {
specialScenarioEight();
} else if (currentFloor == 9) {
specialScenarioNine();
} else if (currentFloor == 10) {
specialScenarioTen();
} else if (currentFloor == 11) {
specialScenarioEleven();
} else if (currentFloor == 12) {
specialScenarioTwelve();
} else if (currentFloor == 13) {
specialScenarioThirteen();
} else if (currentFloor == 14) {
specialScenarioFourteen();
} else if (currentFloor == 15) {
specialScenarioFifteen();
} else if (currentFloor == 16) {
specialScenarioSixteen();
} else if (currentFloor == 17) {
specialScenarioSeventeen();
} else if (currentFloor == 18) {
specialScenarioEighteen();
} else if (currentFloor == 19) {
specialScenarioNineteen();
} else if (currentFloor == 20) {
specialScenarioTwenty();
} else if (currentFloor == 21) {
specialScenarioTwentyOne();
} else if (currentFloor == 22) {
specialScenarioTwentyTwo();
} else if (currentFloor == 23) {
specialScenarioTwentyThree();
} else if (currentFloor == 24) {
specialScenarioTwentyFour();
} else if (currentFloor == 25) {
specialScenarioTwentyFive();
} else if (currentFloor == 26) {
specialScenarioTwentySix();
} else if (currentFloor == 27) {
specialScenarioTwentySeven();
} else if (currentFloor == 28) {
specialScenarioTwentyEight();
} else if (currentFloor == 29) {
specialScenarioTwentyNine();
} else if (currentFloor == 30) {
specialScenarioThirty();
} else if (currentFloor == 31) {
specialScenarioThirtyOne();
} else if (currentFloor == 32) {
specialScenarioThirtyTwo();
} else if (currentFloor == 33) {
specialScenarioThirtyThree();
} else if (currentFloor == 34) {
specialScenarioThirtyFour();
} else if (currentFloor == 35) {
specialScenarioThirtyFive();
} else if (currentFloor == 36) {
specialScenarioThirtySix();
} else if (currentFloor == 37) {
specialScenarioThirtySeven();
} else if (currentFloor == 38) {
specialScenarioThirtyEight();
} else if (currentFloor == 39) {
specialScenarioThirtyNine();
} else if (currentFloor == 40) {
specialScenarioFourty();
} else if (currentFloor == 41) {
specialScenarioFourtyOne();
} else if (currentFloor == 42) {
specialScenarioFourtyTwo();
} else if (currentFloor == 43) {
specialScenarioFourtyThree();
} else if (currentFloor == 44) {
specialScenarioFourtyFour();
} else if (currentFloor == 45) {
specialScenarioFourtyFive();
} else if (currentFloor == 46) {
specialScenarioFourtySix();
} else if (currentFloor == 47) {
specialScenarioFourtySeven();
} else if (currentFloor == 48) {
specialScenarioFourtyEight();
} else if (currentFloor == 49) {
specialScenarioFourtyNine();
} else if (currentFloor == 50) {
specialScenarioFifty();
} else if (currentFloor == 51) {
specialScenarioFiftyOne();
} else if (currentFloor == 52) {
specialScenarioFiftyTwo();
} else if (currentFloor == 53) {
specialScenarioFiftyThree();
} else if (currentFloor == 54) {
specialScenarioFiftyFour();
} else if (currentFloor == 55) {
specialScenarioFiftyFive();
} else if (currentFloor == 56) {
specialScenarioFiftySixty();
} else if (currentFloor == 57) {
specialScenarioFiftySeven();
} else if (currentFloor == 58) {
specialScenarioFiftyEight();
} else if (currentFloor == 59) {
specialScenarioFiftyNine();
} else if (currentFloor == 60) {
specialScenarioSixty();
} else if (currentFloor == 61) {
specialScenarioSixtyOne();
} else if (currentFloor == 62) {
specialScenarioSixtyTwo();
} else if (currentFloor == 63) {
specialScenarioSixtyThree();
} else if (currentFloor == 64) {
specialScenarioSixtyFour();
} else if (currentFloor == 65) {
specialScenarioSixtyFive();
} else if (currentFloor == 66) {
specialScenarioSixtySix();
} else if (currentFloor == 67) {
specialScenarioSixtySeven();
} else if (currentFloor == 68) {
specialScenarioSixtyEight();
} else if (currentFloor == 69) {
specialScenarioSixtyNine();
} else if (currentFloor == 70) {
specialScenarioSeventy();
} else if (currentFloor == 71) {
specialScenarioSeventyOne();
} else if (currentFloor == 72) {
specialScenarioSeventyTwo();
} else if (currentFloor == 73) {
specialScenarioSeventyThree();
} else if (currentFloor == 74) {
specialScenarioSeventyFour();
} else if (currentFloor == 75) {
specialScenarioSeventyFive();
} else if (currentFloor == 76) {
specialScenarioSeventySix();
} else if (currentFloor == 77) {
specialScenarioSeventySeven();
} else if (currentFloor == 78) {
specialScenarioSeventyEight();
} else if (currentFloor == 79) {
specialScenarioSeventyNine();
} else if (currentFloor == 80) {
specialScenarioEighty();
} else if (currentFloor == 81) {
specialScenarioEightyOne();
} else if (currentFloor == 82) {
specialScenarioEightyTwo();
} else if (currentFloor == 83) {
specialScenarioEightyThree();
} else if (currentFloor == 84) {
specialScenarioEightyFour();
} else if (currentFloor == 85) {
specialScenarioEightyFive();
} else if (currentFloor == 86) {
specialScenarioEightySix();
} else if (currentFloor == 87) {
specialScenarioEightySeven();
} else if (currentFloor == 88) {
specialScenarioEightyEight();
} else if (currentFloor == 89) {
specialScenarioEightyNine();
} else if (currentFloor == 90) {
specialScenarioNinety();
} else if (currentFloor == 91) {
specialScenarioNinetyOne();
} else if (currentFloor == 92) {
specialScenarioNintyTwo();
} else if (currentFloor == 93) {
specialScenarioNinetyThree();
} else if (currentFloor == 94) {
specialScenarioNinetyFour();
} else if (currentFloor == 95) {
specialScenarioNinetyFive();
} else if (currentFloor == 96) {
specialScenarioNinetySix();
} else if (currentFloor == 97) {
specialScenarioNinetySeven();
} else if (currentFloor == 98) {
specialScenarioNinetyEight();
} else if (currentFloor == 99) {
specialScenarioNinetyNine();
} else if (currentFloor % 2 == 1) {
mazePuzzle();
} else {
monsterEncounter();

}
}
System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
System.out.println("\nCongratulations, " + Name + "! You reached the 100th
floor and found the exit!");
System.out.println("You have found a huge gate that looks like the
portal you've accidentally gone into.");
System.out.println("You proceed to go inside and a burst of flashing lights
made you cover your eyes instantly.");
System.out.println("But as you recovered, you realize that the wind blows
and waves of water echoed.");
System.out.println("As you began to open your eyes, you saw the beauty of
the world.");
System.out.println("You then realized that you've escaped the dungeon and
immediately run to go back home. The End.");
}

public static boolean monsterEncounter() throws InterruptedException {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("Oh no! You encounter a menacing creature on Floor " +
currentFloor + "!");
System.out.println("Prepare for battle!");

int enemyHP = rand.nextInt(50) + 5;


int enemyAtk = rand.nextInt(10) + 4;

String input;

while (enemyHP > 0) {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("Choose your action: 1. Attack, 2. Defend, 3. Run");
input = UI.nextLine();

if (input.equals("1")) {
int playerDamage = rand.nextInt(10) + atk;
enemyHP -= playerDamage;

System.out.format("You dealt %d damage to the creature! Its HP is %d


%n", playerDamage, enemyHP);

if (enemyHP > 0) {
System.out.format("The creature attacks back! Your HP is %d%n", HP
-= enemyAtk);

if (HP <= 0) {
handlePlayerDeath();
return false; // Player couldn't defeat the creature
}
}
} else if (input.equals("2")) {
System.out.format("You successfully defended against the creature's
attack! Your HP is %d%n", HP);
} else if (input.equals("3")) {
if (attemptToRun()) {
System.out.println("You successfully escaped from the creature!");
currentFloor++;
return true; // Player successfully escaped
} else {
System.out.println("You couldn't escape! The creature attacks
back!");
System.out.format("The creature attacks! Your HP is %d%n", HP -=
enemyAtk);
if (HP <= 0) {
handlePlayerDeath();
return false; // Player couldn't defeat the creature
}
}
} else {
System.out.println("Invalid choice. Choose 1 to attack, 2 to defend, or
3 to run.");
}
}

System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

System.out.println("Congratulations! You defeated the creature on Floor " +


currentFloor + ".");
currentFloor++;
return true; // Player defeated the creature
}

public static boolean attemptToRun() {


int runChance = rand.nextInt(10) + 2;
return runChance > 3;
}

public static void mazePuzzle() throws InterruptedException {


System.out.println("You enter a mysterious chamber on Floor " + currentFloor +
".");
describeFloor(); // Describe the current floor scenario
boolean valid;

do {
valid = true; // Initialize valid to true at the beginning of each
iteration

try {
boolean correctPathChosen = false;

while (!correctPathChosen) {
System.out.println("In the dim light, you see two paths. One seems
to shimmer faintly.");
System.out.println("Choose your path: 1. Left, 2. Right");
int choice = UI.nextInt();
UI.nextLine(); // Consume the newline character

if (choice == 1) {
correctPathChosen = leftPath();
} else if (choice == 2) {
correctPathChosen = rightPath();
} else {
System.out.println("Invalid choice. Choose 1 for Left or 2 for
Right.");
}
}
} catch (Exception e) {
System.out.println("Invalid choice. Choose 1 for Left or 2 for
Right.");
UI.nextLine();
valid = false;
}
} while (!valid);
}

private static boolean leftPath() {


System.out.println("You chose the left path.");

boolean isCorrect = (currentFloor == 2 || currentFloor == 3 ||


currentFloor == 6 || currentFloor == 9 || currentFloor == 12 || currentFloor == 14
|| currentFloor == 10 |
currentFloor == 15 || currentFloor == 18 || currentFloor
== 21 || currentFloor == 24 || currentFloor == 27 ||
currentFloor == 30 || currentFloor == 33 || currentFloor
== 36 || currentFloor == 39 || currentFloor == 42 ||
currentFloor == 45 || currentFloor == 48 || currentFloor
== 51 || currentFloor == 54 || currentFloor == 57 ||
currentFloor == 60 || currentFloor == 63 || currentFloor
== 66 || currentFloor == 69 || currentFloor == 72 ||
currentFloor == 75 || currentFloor == 78 || currentFloor
== 81 || currentFloor == 84 || currentFloor == 87 ||
currentFloor == 90 || currentFloor == 93 || currentFloor
== 96 || currentFloor == 99 || currentFloor == 11 ||
currentFloor == 17 || currentFloor == 20 ||
currentFloor == 29 || currentFloor == 35 || currentFloor == 38 ||
currentFloor == 41 || currentFloor == 50 ||
currentFloor == 56 || currentFloor == 59 || currentFloor == 65 ||
currentFloor == 71 || currentFloor == 74 ||
currentFloor == 80 || currentFloor == 83 || currentFloor == 92 ||
currentFloor == 95);

if (isCorrect) {
currentFloor++;
System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
System.out.println("Congratulations! You found the correct path.
Continue your journey.");
} else {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("Oh no! It's a dead end. Turn back!");
}
return isCorrect;
}

private static boolean rightPath() {


System.out.println("You chose the right path.");

boolean isCorrect = (currentFloor == 1 || currentFloor == 4 || currentFloor


== 7 || currentFloor == 8 || currentFloor == 10 ||
currentFloor == 13 || currentFloor == 16 || currentFloor
== 19 || currentFloor == 22 || currentFloor == 25 ||
currentFloor == 28 || currentFloor == 31 || currentFloor
== 34 || currentFloor == 37 || currentFloor == 40 ||
currentFloor == 43 || currentFloor == 46 || currentFloor
== 49 || currentFloor == 52 || currentFloor == 55 ||
currentFloor == 58 || currentFloor == 61 || currentFloor
== 64 || currentFloor == 67 || currentFloor == 70 ||
currentFloor == 73 || currentFloor == 76 || currentFloor
== 79 || currentFloor == 82 || currentFloor == 85 ||
currentFloor == 88 || currentFloor == 91 || currentFloor
== 94 || currentFloor == 97 || currentFloor == 100 ||
currentFloor == 23 || currentFloor == 26 ||
currentFloor == 30 || currentFloor == 32 || currentFloor == 44 ||
currentFloor == 47 || currentFloor == 53 ||
currentFloor == 62 || currentFloor == 68 || currentFloor == 77 ||
currentFloor == 86 || currentFloor == 89 ||
currentFloor == 98);

if (isCorrect) {
System.out.println("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\
n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
System.out.println("Congratulations! You found the correct path.
Continue your journey.");
currentFloor++;
} else {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("Oh no! It's a dead end. Turn back!");
}
return isCorrect;
}

public static void handlePlayerDeath() {


lives--;

if (lives <= 0) {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("You ran out of lives on Floor " + currentFloor +
".");
System.out.println("GAME OVER! " + Name + " perished in the dungeon.");
System.exit(0);
} else {

System.out.println("---------------------------------------------------------------
-----------------");
System.out.println("You have " + lives + " lives remaining. Respawning
on Floor " + currentFloor + ".");
HP = maxHP;
}
}
} 1

You might also like