Share your repls and programming experiences

← Back to all posts
Wack a Mole
AndrewZhao1 (60)

Wack the mole over and over again until you get tired. This took me around 4 hours. (You can now see the highscore)(also how is this on trending? I literally started 5 days ago)

rian2008 (3)

Hi, I love the wack-a-mole. Please can I use the timer in one of my codes?

EmilyRobot96 (0)

I really liked this game! There is one thing though, what does this have to do with a mole? Maybe change the name to something more fitting?

EmilyRobot96 (0)

It's really cool! I don't get what this has to do with a mole though...
Maybe change the name to something more fitting. Also, it said the 'high score' is 7 but I went WAY past that.

EpicGamer007 (1600)

I have an idea. Why don't you hold a variable for the amount of milliseconds to wait and each time, you decrease the variable by a few milliseconds so that it gets harder and harder each time!

AndrewZhao1 (60)

@AbhayBhat the games already so hard ya know...

dj43365 (1)

@AndrewZhao1 your game is easy with js

AndrewZhao1 (60)

@dj43365 hard to get a good score

funnyIce (0)

i dint get how to play it though XD

JonoLang (13)

Great Game! But the instructions aren't very clear...

AndrewZhao1 (60)

@JonoLang uh, so you will see a ton of 000000 but there will be a 1 so you need to type in what place the 1 is in order from left to right

lichr (1)

Awesome! It's fun to play.

Zavexeon (1187)

@UniqueOstrich18 Hey there, please don't advertise on other people's posts. Have a great day!

HollyC7 (0)

This is pretty sweet!

JeffBobJoe (4)

it neat i like it :)

ShivaSubraman (11)


Snaddyvitch_Dis (0)

You can replace:
for x in range(99999):
while True:
for an infinite loop.

AndrewZhao1 (60)

@Snaddyvitch_Dis I did that to see if people would cheat and say they had a score of 99999999999999999

AndrewZhao1 (60)

@Warhawk947 uhh, IDK wut happened there

Warhawk947 (552)

@AndrewZhao1 an issue with threading most likely

AndrewZhao1 (60)

@Warhawk947 threading is not easy but on scratch its piece of cake

dj43365 (1)

@AndrewZhao1 that is because scratch is easy peasy and i actually made the snake game

HiroEndin (26)

How to fake a godly score:

Hunt092 (0)

why don't you run with a while loop instead of a for loop

Hunt092 (0)

also you can just use the random in itself to place one in the position

dj43365 (1)

how is it wackamole

AndrewZhao1 (60)

@dj43365 I guess becuz it's like you are trying to catch the one sortof

dj43365 (1)

@AndrewZhao1 you should make picture and use js because python isnt used for games that much

AndrewZhao1 (60)

@dj43365 I haven't learned java yet but I learn it next week so I can make this better

EpicGamer007 (1600)

@AndrewZhao1 He meant javascript, not java but i can teach u java if you want:)

dj43365 (1)

@AbhayBhat I can also teach you js

AndrewZhao1 (60)

@dj43365 oh, well I'm taking a camp so no need but thanks for offering

Nathankang77 (18)

so um.. why wont it let me play (i dont mean to say its bad tho)

Nathankang77 (18)

@AndrewZhao1 it just shows like a tutorial but then it just stops.

Nathankang77 (18)

@AndrewZhao1 ohhhhhh now i know how 2 play srry bout it but im super bad at it but it neat and fun! :)

Bookie0 (5935)

This is kinda like the 4chances game @ChezCoder and me made!

But cool!

Warhawk947 (552)

@DJWang that score is impossible because the for loop only goes up to 99999 not 999999 sorry bud ;)

DJWang (1344)

@Warhawk947 #Busted

@AndrewZhao1 You programmed that so I you could catch cheaters like me right

DeBeast591 (135)

Why did you use a for loop instead of a while true loop

while True:
  # Your code
AndrewZhao1 (60)

@DeBeast591 so people wouldn't say they had a score of 9999999999

Dazz (5)

@AndrewZhao1 How do you make the timer?

AndrewZhao1 (60)

@Dazz you can import time and work from there


@AndrewZhao1 This is a great game, but I have an idea which could make the game better. What you could do is if the player gets it wrong/times out, you could ask if they want to play again instead of having to restart the game.