Skip to content
← Back to Community
Code
Profile icon
JoshuaWilmsen

Each time I run my snake game. it just keeps on saying update your pip installer.... what do the mean by that?

Voters
Profile icon
SIMOAFER123
Profile icon
DanielNicholls2
Profile icon
abetts18
Profile icon
JamieWard2
Profile icon
Kranax
Profile icon
AlexanderSchnee
Profile icon
MichelProgamer
Profile icon
PerCo11
Profile icon
TOMNguyen8
Profile icon
MikylaVega
Comments
hotnewtop
Profile icon
KhyeOrchard

WHAT DO THE MEAN BY THAT IS UPDAT UR PIP INSTALLER THAT WHAT I MEAN

Profile icon
KallumMiddleton

basically what you do is update your pip installer

Profile icon
MeowC

May I see the repl?

Profile icon
JoshuaWilmsen
Profile icon
bion0

Hi all. am new in coding and just learning to code. can someone please help me with adding adding images in a code please.

Profile icon
erikbk

@bion0 In HTML ?

Just reply to me if you need help for adding images in HTML ;_)

Profile icon
Mosrod

What language do you want to do this in?

Profile icon
ash15khng

@bion0 Hello, if you want to ask a separate question I suggest you make a new question instead of asking it in the comment section of another question as this may clutter up this question with irrelevant answers.
Also, if you want to do it in HTML, use the This file cannot be displayed: tag. To add the source of the image use the attribute 'src="link"'. For example will display an image of the [repl.it] logo. The reason why there is a / at the end of the tag is because the img tag has nothing within it, so you just close it with that.

Profile icon
Neil_Chaudhury

Ok, so at the moment, pygame is not supported on repl.it. To run your script you will have to use an ide on your computer. I suggest sublime text. Hope this helped.

Profile icon
JoshuaWilmsen

thx so [email protected]_Chaudhury

Profile icon
Neil_Chaudhury

It just says to update pip to 18.0 or something most likely, so you don't have to worry about that.

Profile icon
PYer

Can i see the repl?

Profile icon
JoshuaWilmsen
Profile icon
JoshuaWilmsen

It won't let me send you the [email protected]

Profile icon
PYer

@JoshuaWilmsen just comment the link please

Profile icon
JoshuaWilmsen

kay here its
@fullern000

Profile icon
JoshuaWilmsen
Profile icon
JoshuaWilmsen
Profile icon
PYer
Profile icon
PYer

@JoshuaWilmsen You can't make a new window using pygame. Stuff like that doesn't work. So, you will not be able to run

s = pygame.display.set_mode((ARRAY_SIZE * 10, ARRAY_SIZE * 10))
Profile icon
JoshuaWilmsen
Profile icon
PYer
Profile icon
JoshuaWilmsen

can you help me with coding please. I kinda suck and get made fun of because I like to code
@fullern000

Profile icon
PYer

@JoshuaWilmsen Just ask me what you need help with

Profile icon
PYer

I need to leave though

Profile icon
JoshuaWilmsen

is there a way you can make this better https://repl.it/@JoshuaWilmsen/Ghost-Game @fullern000

Profile icon
PYer
Profile icon
PYer

@JoshuaWilmsen The game is great already though. I just made some minor changes.

Profile icon
JoshuaWilmsen
Profile icon
ChristianThone

@JoshuaWilmsen
I changed a few things. First, I changed it so that you can actually end the game if you go through the door with the ghost, before your code looked like this at the beginning.

while feeling_Brave:

I changed this to:

while feeling_Brave == True:

also your variable with feeling_Brave was written wrong as feeling_brave that wouldn't allow the correct boolean to change. I also added it so then you can't choose a Number higher than 3. Last but not least I converted the score in the Game Over Message to a string so you can properly print it.

Here is the source_code for the new project:

from random import randint print(""" ============================================================================================================================================ == === =============================== ========================================== ==== ===== ========== ======== == = == == ============================== == ========================================= ==== === = ======= == ====== == = = ==== == ==================== ======== ==== ========================================= ==== == === ====== ==== ====== ==== = = ======== ====== ==== === ======= ========= === = = ==== ================== ==== ======= ======= ==== ====== ==== = = ======== === == = === ======== ======== = == == = ================= == ====== ======== ==== ====== ==== = = === == = == = === ===== ======== === ===== == = = == ================== == ====== ========= ==== ====== ==== = = ==== == = == = ==== ==== ======== ==== === == = = == ===================== == ===== ========== ==== ====== ==== = = == == = == = == = === ======== == == = == = = == = =================== ===== ======= == == == == == = == === = === ==== ==== ======== ==== == = = === ===================== ===== === === === === == ============================================================================================================================================ """) feeling_Brave = True score = 0 while feeling_Brave == True: ghost_door = randint (1, 3) print("") print('Three doors ahead...') print('A ghost behind one. ') print('Which door do you open?') door = input('1, 2, 3: ') door_num = int(door) if door_num > 3: print("That number is too high!") print("Try Again!") print("") ghost_door = randint (1, 3) print('Three doors ahead...') print('A ghost behind one. ') print('Which door do you open?') door = input('1, 2, 3: ') door_num = int(door) if door_num == ghost_door: print("") print ('Ghost!') feeling_Brave = False else: print("") print('No ghost!') print('You enter the next room.') score = score + 1 print("") print('You Ran Away') print('Game over! You scored ' + str(score) + ' points.')