Forum Archive

Text Game Not Working

Petter

Hello everyone,,
I am trying to understand what I am doing wrong?

I am following a step by step youtube video. I don’t understand why it’s not running on Pythonista? I even tried changing the interpreter to 2.7, still not running the code. There is no error message. It’s just not running. The play button blinks when I tap on it or use cmd (r), and nothing happens after that.
https://showbox.bio/ https://tutuapp.uno/ https://vidmate.vet/
Here is the video link:
(I cannot proceed past the 12:50 mark since the code is not running)

https://youtu.be/miuHrP2O7Jw

Here is my code:

import random 
import time

def displayIntro():
        print("It is the end of a long year of fighting space criminals")
        print("you come to a crossroads on your trip home, one path leads home")
        print("where you will be handsomly rewarded for a job well done")
        print("and the other leads through a gamma ray burst")

def choosePath():
            path = ""
            while path != "1" and path !="2": #input validation
                path = input("Which path will you choose? (1 or 2): ")


            return path

            displayIntro()
            choosePath()
ccc

Indentation is super important in Python. Remove all indentation from your last two lines.

apppevenapp

Ensure that you have turned on the choice of "Obscure Sources" in Settings-> Security in your Android gadget. Take a stab at introducing again App Even APK once you have turned on the choice. I am certain the download and establishment procedure will begin with no hiccups from that point.

bhaiterabhai

can you share download link for the game ? shareit app vidmate app

xpacenine

yes, i'm also facing same issue jiofi login https://forpc.onl

adamjon23

Hi, i hope it is working now!