0% found this document useful (0 votes)
2 views5 pages

Interactive Mafia Choice Game

java progrm using scanner class

Uploaded by

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

Interactive Mafia Choice Game

java progrm using scanner class

Uploaded by

prakash.rsap
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

import [Link].

*;
class COMPLETELY_RANDOM_INTERACTIVE_OPTION_BASED_GAME
{
public static void main (String args[])
{
Scanner sc = new Scanner ([Link]);
[Link]("WELCOME TO A COMPLETELY RANDOM INTERACTIVE OPTION BASED
GAME WHERE options matter....");

[Link]("*********************STARTING*************************");
[Link]("A Mafia boss appears out of nowhere and holds you in
gunpoint for something and says:");
[Link]("\u20B9 20000000");
[Link]("Pay up money or die *gun in pocket ready*[run away?]
(Y/N)");
char op= [Link]().charAt(0);
if (op == 'N')
{
[Link]("Good choice now pay up *takes had away from
gun*[run away?] (Y/N)");
char op2= [Link]().charAt(0);
if (op2 == 'Y')
{
[Link]("DON'T YOU DARE RUN AWAY *PULLS OUT GUN
~slowely* [Left or right?] (L/R)");
char op3= [Link]().charAt(0);
if (op3 == 'L')
{
[Link]("*You find a car [go in car?] (Y/N)");
char op4= [Link]().charAt(0);
if (op4 == 'N')
{
[Link]("*You proceed somewhere away from the
car and find YOUR. car go in?*(Y/N)");
char op5= [Link]().charAt(0);
if (op5 == 'Y')
{
[Link]("*You start the engine but not sure
where to go where you go to? [House or Police](H/P)");
char op6= [Link]().charAt(0);
if (op6 == 'H')
{
[Link]("*You go home and rember the
mafia KNOWS WHERE YOU LIVE but you have time to prepare. Go to attic(A) or
basement(B)?*(A(/B)");
char op7= [Link]().charAt(0);
if (op7 == 'B')
{
[Link]("*You head to the basement
and remember you grandpa's old WW2 rifle? will you pick it up?*(Y/N)");
char op8= [Link]().charAt(0);
if (op8 == 'Y')
{
[Link]("*Someone is banging up
the door investigate it with your rifle(I) or camp the basement(B)*(I/B)");
char op9= [Link]().charAt(0);
if (op9 == 'B')
{
[Link]("*You stay within
the basement and hear the door break open and steps heading in and you know someone
is right behind the door. Open the door and fight what is behind(F) or remain in
basement(B)?*(F/B)");
char op10= [Link]().charAt(0);
if (op10 == 'B')
{
[Link]("*Door opens and
you see him, the mafia boss guy but he doesnt notice you behind the door. Take him
hostage or remain in position?*(Y/N)");
char op11= [Link]().charAt(0);
if (op11 == 'Y')
{
[Link]("ARG! LEAVE
ME ALONE! *His men are pointing at you and the boss is gasping for air,you want to
shoot him(S) or take him hostage till the phone(H)?*(S/H);");
char op12= [Link]().charAt(0);
if (op12 == 'H')
{
[Link]("who you
call? [???(N)[ULL] or police(P)]?(N/P)");
char op13=
[Link]().charAt(0);
if (op13 == 'P')
{

[Link]("Police arrive at the scene, Mafia were jailed and you too but
realeased under self defence and you can now relax at home");

[Link]("********ENDING 1: GOT'EM ALL!*************");


}
else if(op13 =='N')
{
[Link]("An
unknown creature teleports you to a void like space you turn behind to see a red
eyed monst-");

[Link]("*******ENDING
NULL:VOIDVOIDVOIDVOIDVOIDVOIDVOIDVOIDVOIDVOIDVOIDVOID*************");
}
else
{

[Link]("*******INVALID OPTION***********");
}
}
else if( op12== 'S')
{
[Link]("*You
shot him and the the men see you as if you overthrew him? They make you one of
their own and now you are the mafia boss*");

[Link]("***********ENDING 2:MAFIA ENDING**********");


}
else
{

[Link]("*******INVALID OPTION***********");
}
}
else if(op11=='N')
{
[Link]("You remain in
position and they spotted you stupidly standing there doing nothing and shot you");
[Link]("*******R.I.P
YOU DIED***********");
}
else
{

[Link]("*******INVALID OPTION***********");
}
}
else if(op10== 'F')
{
[Link]("You open door
with your battle cry just to see the entire mafia akwardly looking at you then you
raised your gun and get shot");
[Link]("*******R.I.P
YOU DIED***********");
}
else
{
[Link]("*******INVALID
OPTION***********");
}
}
else if(op9== 'I')
{
[Link]("You look through
the peep hole and find they are pointing at the peep hole just as you figured out
that they are pointing at the door they fired");
[Link]("*******R.I.P YOU
DIED***********");
}
else
{
[Link]("*******INVALID
OPTION***********");
}
}
else if(op8== 'N')
{
[Link]("You were unarmed and
decided to go back upstairs and the mafia broke in, you begged for mercy and they
killed you without a doubt");
[Link]("*******R.I.P YOU
DIED***********");
}
else
{
[Link]("*******INVALID
OPTION***********");
}
}
else if (op7== 'A')
{
[Link]("You find a weird looking
thing in the attic and the moment you close the attic door it appeared as a black
shadow-y figure infront of you and RIPS YOU TO SHREDS AND MAKES SURE THERE ARE NO
LOOSE ENDS");
[Link]("*******R.I.P YOU DIED?
***********");
}
else
{
[Link]("*******INVALID
OPTION***********");
}
}
else if( op6== 'P')
{
[Link]("You head to a police station
and report the crime and the mafia blew their cover so all members have gone into
hiding and you are safe, aren't you?");
[Link]("***********ENDING 3:GOT'EM ALL?
*************");
}
else
{
[Link]("*******INVALID
OPTION***********");
}
}
else if (op5== 'N')
{
[Link]("You bothered not to go in your car
too and the mafia kidnapped you in a van and killed you and dumped your body in an
alleyway");
[Link]("*******R.I.P YOU DIED?
***********");
}
else
{
[Link]("*******INVALID OPTION***********");
}
}
else if (op4=='Y')
{
[Link]("this isn't YOUR car how stupid you are,
you were so stupid in that scene you died of embarrassment");
[Link]("*******R.I.P YOU DIED?***********");
}
else
{
[Link]("*******INVALID OPTION***********");
}
}
else if(op3=='R')
{
[Link]("Dead end..... wow, looks like you're done
for");
[Link]("*******R.I.P YOU DIED?***********");
}
else
{
[Link]("*******INVALID OPTION***********");
}
}
else if(op2== 'N')
{
[Link]("KACHING! CONGRATS YOU ARE BROKE NOW AND IN
HEAVY DEBT TO THE GOVERMNET TO YOU ARE JAILED");
[Link]("***************ENDING 4:BROKE!
*******************");
}
else
{
[Link]("*******INVALID OPTION***********");
}
}
else if(op=='Y')
{
[Link]("You ran away and got shot");
[Link]("*******R.I.P YOU DIED***********");
}
else
{
[Link]("*******INVALID OPTION***********");
}
}
}

Common questions

Powered by AI

Survival in the game is depicted through a series of choices that test the player's ability to navigate threatening situations. In interactions with the mafia boss, players choose between immediate compliance (like paying money) and resistance strategies (e.g., hiding or negotiating). The game's structure pressures the player into survivalistic decision-making, where wrong choices often result in instant death (e.g., "running away and got shot") or prolonged survival through carefully navigating choices like choosing the right hiding spot or weapon (). The narratives emphasize the fragility of survival, demonstrated in scenarios such as taking the mafia boss hostage or evading attackers, which may either secure freedom (ending 'GOT'EM ALL!') or lead to the player's demise (). This reflects broader themes of risk management and strategic planning inherent to survival in hostile environments.

The endings 'MAFIA ENDING' and 'GOT'EM ALL!?' underscore the game's emphasis on player agency as a determining factor in story resolution. 'MAFIA ENDING' occurs when a player chooses to shoot the mafia boss, symbolizing a transformative narrative where the player shifts roles from victim to leader, reflecting on how aggressive actions provide an unexpected resolution through power acquisition (). In contrast, 'GOT'EM ALL!?' involves strategic, non-violent decisions like calling the police after capturing the mafia boss, leading to justice through lawful means and safe passage home (). These endings reveal that player actions, whether violent or law-abiding, significantly sway the game’s conclusion, highlighting themes of power dynamics, justice, and morality in interactive storytelling.

The game emphasizes decision-making through a series of user inputs that lead to various outcomes, highlighting the importance of choice in interactive storytelling. Players must choose between running away from a mafia boss or confronting him, with choices like paying the demanded money resulting in heavy government debt (). Further decisions, such as whether to hide in the attic or basement, affect survival chances, while interactions with characters (e.g., taking the mafia boss hostage or shooting him) impact the player's fate within the game world, leading to endings like 'MAFIA ENDING' or 'GOT'EM ALL!' (). This structure illustrates the impact of user choices on narrative direction, particularly in scenarios that allow for branching paths and multiple endings.

The game incorporates moral themes through player choices and the resultant ramifications, urging contemplation of ethics in high-stakes scenarios. Choices like paying the mafia boss play into themes of complicity and consequence, signifying ethical compromises and their impacts, such as accruing governmental debt (). Other actions, like taking the mafia boss hostage or killing him, address broader moral questions about violence and authority and its legitimacy or lack thereof. The player's decision to involve the police versus becoming a mafia leader explores themes of justice, accountability, and allegiance (). These narrative choices compel players to consider the morality of their actions, reflecting on how varying moral stances can lead to different social and personal outcomes, emphasizing ethical implications in branching narratives.

Elements of suspense and surprise are woven into the game’s storyline through unpredictable outcomes and high-stakes decision points. Players are frequently confronted with split-second decisions, where hesitation or wrong choices could lead to immediate death or intricate new plot developments, such as the sudden emergence of a supernatural entity or unexpected violent confrontations (). The constant anticipation of varied paths—like choosing between confronting the mafia boss or eluding capture—ensures that suspense is maintained throughout, while unexpected plot twists, such as transformative endings, add surprise, compelling players to remain alert and engaged. These elements heighten the storytelling experience by challenging players with continuous questions of their safety and decision efficiency.

The game's narrative employs techniques such as conditional branching and interactive choice prompts to support its complex structure. Players are presented with options requiring yes or no answers, leading to diverse pathways and endings including peaceful resolutions, violent confrontations, or supernatural occurrences (). This approach encourages non-linear storytelling, where outcomes like 'MAFIA ENDING' and unexpected twists like a void encounter are directly shaped by player inputs, facilitating a deeply personalized narrative experience. The repeated use of binary decisions forms an intricate web of possibilities, driving engagement through dynamic narrative progression, allowing storytellers to seamlessly weave extensive variations where player agency determines the narrative course.

Humor in the game's narrative is used to offset tension and offer critique of decision-making in dire circumstances, contributing to a unique player experience. The humor is evident in scenarios where unwise decisions lead to exaggerated outcomes, such as dying of embarrassment after choosing the wrong car or absurd situations like finding oneself jailed due to a hasty decision to comply with extortion (). These elements of humor serve not only to entertain but also to prompt reflection on the absurdity of certain choices and their unforeseen consequences, thereby enriching the narrative with wit and commentary. Humor acts as a narrative device to balance the high stakes of survival with levity, making the game more engaging and approachable while maintaining the thematic integrity of an interactive story.

Environmental choices are crucial in building tension and guiding the narrative of the game. When faced with immediate threats from the mafia, players must choose where to go (e.g., the attic or basement), each location with distinct consequences. For instance, going to the basement allows the player to potentially use a weapon for defense, setting up suspenseful confrontations, while choosing the attic introduces supernatural elements with fatal consequences (). The narrative uses these environmental contexts to create suspense by presenting situational dilemmas and thickening the plot, leading to diverse outcomes illustrating the environment's role as a pivotal factor in mediating both tension and story progression.

Unpredictability plays a central role in sustaining player engagement by ensuring that choices lead to diverse and unforeseen outcomes, enhancing replayability and immersion in the narrative. The structure fosters unpredictability through branching paths and unexpected consequences for player actions, such as choosing to enter a wrong car leading to death from embarrassment or opting for peaceful resolution leading to a supernatural encounter (). These elements create a dynamically interactive environment where players must constantly adjust strategies, adding layers of complexity to decision-making processes. By integrating unpredictability, the game ensures that each playthrough can yield different results, encouraging players to explore various paths and maintain interest by challenging anticipation and expectations.

The game's design reflects common themes in text-based adventure games by focusing on player choice, consequence, and narrative branching. Players navigate through a series of options that require them to make decisions impacting the storyline, such as choosing immediate compliance or resistance against adversarial characters like the mafia boss, which are thematic staples in interactive fiction (). The emphasis on narrative exploration, evidenced by diverse possible endings (e.g., 'MAFIA ENDING', 'GOT'EM ALL!?'), highlights themes of choice and consequence, encouraging players to engage deeply with the narrative and explore multiple outcomes. These themes are central to text-based adventure games, offering a personalized storytelling experience based on individual decisions.

You might also like