Ask coding questions

← Back to all posts
JoshuaWilmsen (15)

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

KhyeOrchard (0)


KallumMiddleton (0)

basically what you do is update your pip installer

bion0 (3)

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

Pizzadrengen (2)

@bion0 In HTML ?

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

Mosrod (561)

What language do you want to do this in?

ash15khng (729)

@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 <img> tag. To add the source of the image use the attribute 'src="link"'. For example <img src=""/> will display an image of the [] 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.

Neil_Chaudhury (9)

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

Neil_Chaudhury (9)

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

PYer (4035)

Can i see the repl?

PYer (4035)

@JoshuaWilmsen just comment the link please

PYer (4035)

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

JoshuaWilmsen (15)

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

PYer (4035)

@JoshuaWilmsen Just ask me what you need help with

PYer (4035)

I need to leave though

PYer (4035)

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

ChristianThone (70)

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.

I changed this to:

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: