Python Forum
Getting errors when trying to run programs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting errors when trying to run programs
#6
(Apr-09-2020, 06:48 PM)michael1789 Wrote: Without seeing exactly what the code is, it looks like maybe the game is trying to gram an image from online, and either that page is gone or the image is gone or doing it from your IP won't work.

It would basically seem like it is missing an image file your game needs to run. You will have to look through the code to find the images and set them to ones you have.
I managed to get the game running. I believe this game was intended for Python 2. Rolling the dice

#!/usr/bin/python3
import random
min = 1
max = 6

roll_again = "yes"

while roll_again == "yes" or roll_again == "y":
    print ("Rolling the dices...")
    print ("The values are....")
    print (random.randint(min, max))
    print (random.randint(min, max))

    roll_again = input("Roll the dices again?")
What I did was to add parentheses to the print statements and delete the raw_ part of input in the last line.
Reply


Messages In This Thread
RE: Getting errors when trying to run programs - by whois1230 - Apr-10-2020, 08:23 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020