TechieYan Technologies

Text Based Adventure Game

Abstract

Learning to code is an excellent approach to increase your problem-solving and logic-building abilities. Creating projects is one way to get started. You can develop a wide range of projects even if you are just learning to program. There is no better way to develop original and enjoyable Python projects than to design games. Most programmers got their start in the field by wanting to create their own video games. At some point in our lives, we all have played games in our lives and we all know how charismatic one becomes when they win in a game or even play their favorite games, which will not only bring joy, it also helps to reduce stress in our lives. Therefore, we’ll make one of the most basic and interesting game, which can be played by anyone i.e., Text based adventure game by using python programming language, the game is made with a story of a girl and a decision that she can make at a particular situation. While building new stories and consequences on taking decision, you will be able build your logical and emotional thinking and can be able to implement learnings while building similar games. The project is totally build using python programming language which is very popular, easy and widely used programming language across the globe.

Adventure Game

Programming Methodology

  • The program is based on the context of our story, the girl hear the sound from outside of her bedroom
  • Did she went to check out or stayed in her room.
  • If you give input as yes the output will state what happed after it
  • Else your input will be no, then it tells what was the situation with her

Code Description & Execution

How to Execute?

 

Step 1 :

You need to open the jupyter notebook in the path directory on the anaconda prompt shell.

In my case

GUI Application for Calendar execution code

         To perform the above step you already need to have knowledge of installing jupyter notebook and running anaconda shell, if you don’t know how to install or run jupyter notebook check our previous articles about it.

Step 2 :

 

         Install required libraries

 

         In anaconda prompt type pip install –r requirement.txt

 

Step 3:

 

         Open py file by command python app.py

                                                                    

   Required libraries are written in code please refer.

OUTPUT

Text based Adventure Game

 

 

The input from you can be stay or evaluate as shown in the output

 

Issues you may face

 

  1. While giving right path in the Anaconda prompt shell to open jupyter notebook in correct directory.
  2. Make sure to install requirements.txt using (!pip install -r requirements.txt) in the first code cell.
  3. Make sure to open any. ipynb field using jupyter notebook command entered in your anaconda terminal and from there you will be redirected to a webpage, where you will have your executable files, click on any. ipynb file to open it and in order to run this press shift + enter.

Note:

All the required data has been provided over here. Please feel free to contact me for model weights and if you face any issues.

https://techieyantechnologies.com/contact/

Yes, you now have more knowledge than yesterday, Keep Going.

Click Here To Download This Code And Associated File.

 

+91 7075575787