Share your repls and programming experiences

← Back to all posts
The Maze, but its cool
Muffinlavania (1393)

Welcome to the maze!

Some of you might have already seen this, but this is not just a repost for nothing. I saw @InvisibleOne 's post, and saw how cool Background colors are for walls and such. So instead of being a box moving around a field of Xs, now you're a box in a full blown out maze! Also customizations are still a thing!


How to play

Use WASD or the arrow keys to move around the maze, and your objective is to get to the yellow treasure! Every level there is one secret though... And in later levels there are invisible fake walls and 'W's, which you can walk through!


New Things at your muffin stand

Buttons

In the newest levels (level 19+), there is a button in the top left and a weird wall blocking the treasure. Wonder what will happen?
(Thanks @dabombdgdzjr)

NO MORE FLICKERING? (and without curses yassssss)

I literally just put print("\033[H",end="") and it worked (Again a suggestion by my boi @InvisibleOne )


Some things that can happen

Changing the maze color or the treasure color to the same thing or the same color as something else might be confusing

Bugs
Fixed: Sometimes a level can update at the same time you moved, basically making two players. Fixed!

This can also happen


Dont worry it will disappear after you pass a level, and you can press c to get rid of it as well


Want to make your own maze?

Well you can! Go here and create your own! There is a little tutorial too on how to create your own, and you can test it by just hitting run and then hitting enter! When you are happy with your maze, comment it below. I have already added one maze created by @JasonLiu19 !

Again thanks to @InvisibleOne For the Background idea and the clear screen thingie

Commentshotnewtop
Muffinlavania (1393)

Do you know the muffin man?

NoNameByProgram (173)

@NoNameByProgram the muffin man, oh, do you know the

EpicRaisin (199)

@Muffinlavania The one on Drury Lane, or the other muffin man?

rayaansom (43)

I know the Muffin Man

Ooh 😮 do u know the muffin man the muffin. Man who lives on ..... lane @Muffinlavania

dabombdgdzjr (120)

Bro you gotta help me make these advanced button algorithms on our @Muffinlavania

Muffinlavania (1393)

@dabombdgdzjr ill be on in like an hour ok, right now its 11:55 Am for me

Muffinlavania (1393)

@dabombdgdzjr oh then you're an hour behind me, its 12:40 right now

dabombdgdzjr (120)

XD sorry I had a zoom I couldnt see this, but I have anotheer one my lunch break is over :( @Muffinlavania

Muffinlavania (1393)

@dabombdgdzjr yea me too oooooooof i can at 3:00 for you, or 4:00pm for me(16:00 in other time thingie)

dabombdgdzjr (120)

Cant packed with work I procrastinated too much @Muffinlavania

Muffinlavania (1393)

@dabombdgdzjr bruhhhhhhhhhhhhhhhhhh also isnt it friday so like

NoNameByProgram (173)

@Benramin that lives on drury lane oh

dabombdgdzjr (120)

@NoNameByProgram the muffin man, the muffin man, the muffin man, oh do you jnow the muffin man

NoahJospeh (16)

@Muffinlavania Yes, I do... And I believe that it's muffin time!

InvisibleOne (511)

@Nettakrim told me to replace os.system('clear') with print("\033[H",end="")
I tried it and it worked really well, a lot less flickery

Muffinlavania (1393)

@LillieHarper with the help of someone invisible

InvisibleOne (511)

Your welcome, but the thanks should really go to @Nettakrim because he told me how to do it @Muffinlavania

Muffinlavania (1393)

@InvisibleOne well thank you for letting me know the big brain of Nettakrim

Nettakrim (393)

@InvisibleOne i think @ChezCoder told me how to do it like 5 months ago if you want to trace it back that far

another interesting thing is you can use "\033[?25l" to hide the cursor and "\033[?25h" to show it

InvisibleOne (511)

Hmm, I've always just used cursor.hide() @Nettakrim

abdullahrajput9 (247)

This is just SOOO GOOOOODD and addictive man.

I just LOVE it. :) @Muffinlavania

DarkswordsmanJG (15)

Super cool game, much better than I can do!

Muffinlavania (1393)

@DarkswordsmanJG its actually not that hard, but thanks!

LiamDonohue (293)

haha muffin go brrr

JasonLiu19 (43)


i found this while doing homework

ConnorMcclanagh (1)

WHAT Are YoU DoINg In MyyYYYYYyYYYY SWamP

TROD2007 (2)

im confused on level 12 can someone tell me what to do?

Muffinlavania (1393)

@TROD2007 on level 12 there is an invisible part, if you check the walls near where you spawn you should find one close to the spawn, and one further away. The one further away is where you want to go

TROD2007 (2)

@Muffinlavania ok, but i was trying to go through all the walls, and i found some secrets, but I couldn't get to the yellow teleport thingy

TROD2007 (2)

@Muffinlavania i'm also stuck on the 18th level, I found all the entrances, but idk where to go now

Muffinlavania (1393)

@TROD2007 basically all levels after 12 are cheeky

Reestrelax (2)

can you teach me how does the script get it when the keys are pressed?

Muffinlavania (1393)

@Reestrelax

from getkey import getkey
keypressed=getkey()
RyanChoe1 (185)

You should try to make the card game Dose because I really liked you uno.

TROD2007 (2)

@RyanChoe1 hello, I have a question. Also im chatting here cuz the Among us one is locked so I can't chat there. Well I have a question, I am making a math game thing from scratch, but Im having trouble with making command statements here is the URL
https://repl.it/@TROD2007/Fun-Math#main.py

TROD2007 (2)

@RyanChoe1 I'm trying to make it so that way when they put a word or number, it will either say that it doesn't understand or correct or incorrect

RyanChoe1 (185)

@TROD2007 srry i didn’t reply sooner. I was doing homework and eating dinner.

Muffinlavania (1393)

@TROD2007 you can do this

while input("1x1= ") not in ['1','one']:

This makes it so that it keeps repeating until you say one or 1
TO use this in all of them just make the != a not in and change the answer to [CORRECT_NUMBER_ANSWER,CORRECT_NUMBER_WORD_ANSWER]' Also if you want to be able to accept stuff likeONEandOnEadd a.lower()` to the input, like this

while input("1x1= ").lower() not in ['1','one']:
TROD2007 (2)

@RyanChoe1 hello, i am making a new repl that is like a story that I plan on making into something bigger, maybe an app or something. But if you can help, go to it, it says something about it be top secret.

TROD2007 (2)

@RyanChoe1 Yay ok, see you there

dhruvkumarrajan (47)

Wow!!! This maze is super cool! Can I use this as a game for my arcade? All credits will be given.
Here is the link to my current arcade: https://repl.it/@dhruvkumarrajan/Utopia-Arcade-Forever#main.py

Muffinlavania (1393)

@dhruvkumarrajan yea sure, im pretty sure if you want to just run this you put main.py for this maze in something like maze.py, then you make setup.py the exact same, and if you import maze it should run the maze

TROD2007 (2)

@dhruvkumarrajan can you put one of my game in your arcade. It's a hangman game that has over 300 word to guess. You get 9 guesses including the head, first body, second body, two arms, two legs, and two feet. Here is the URL for my game... this first one is the main.py the second one are the words for it
https://repl.it/@TROD2007/Hangman-Game#main.py
https://repl.it/@TROD2007/Hangman-Game#words.py

dhruvkumarrajan (47)

@TROD2007
Hi TROD2007. I put your game in my arcade. Here is the link to it:

https://repl.it/@dhruvkumarrajan/Utopia-Arcade-Forever#main.py

Please do tell me modifications and edits which would help improve the program and also new games.
Thank You!

dhruvkumarrajan (47)

@TROD2007
Hello. I have already added your game into my arcade. Here is the link: https://repl.it/@dhruvkumarrajan/Utopia-Arcade-Forever#main.py
Please write a 'Summary' for the game, like how it works and what it is about.
Thank You.

TROD2007 (2)

@dhruvkumarrajan Hello! I wrote the summary of the game. Is there anything else you want me to add to you Repl? Or is that it?

NoahJospeh (16)

Great game, but it's only when you get very far in the game that getting the secret is much harder... and also, you can't hold down the button to move, because sometimes it messes up the map with the key you are pressing, but still, great game!

Muffinlavania (1393)

@NoahJospeh for some levels your right, holding down the arrow keys will spam it too much, thats why I added if you press c it will reset itself

Muffinlavania (1393)

@NoahJospeh Also yea invisible walls = :(

NoahJospeh (16)

@Muffinlavania idea: you could turn your maze game into an rpg...

Muffinlavania (1393)

@NoahJospeh thats actually what im doing, with a different version.
Im going to make this into something
Also why you love rpgs

tomnagel (1)

I have seen other maze games and to be honest this is one of the good ones. I really liked it! Had some trouble with level 9 tho, couldn't figure out how to use the X, but maybe I'm just stupid.

Edit: SO as it turns out I am indeed stupid, took me some time that you can't walk trhough every wall

Muffinlavania (1393)

@tomnagel lol also if you ever are stuck press h for hints, but some of the hints are a bit stupid so if you really cant get past a level tell me

tomnagel (1)

@Muffinlavania yeah I tried that and it said something about replacing a 'W' with an 'X' and I thought that that refered to the keys, but it actually refered to the walls and the blank squares.

Muffinlavania (1393)

@tomnagel did you figure it out though?

tomnagel (1)

@Muffinlavania it took me some time but eventually I did, btw you reply crazy fast

firefish (794)

@Muffinlavania erm how do you er... blow up the wall with dynamite?

Muffinlavania (1393)

@firefish wait did you make the walls black or something? Also there some walls that you can walk through, I didnt make them that hard but if you have to go to the maze in setup.py, the walls you can walk through are U

StealthySniper (11)

I don't know if anybody else has this problem, but it has an unmatched parenthesis on line 232 in main.py.

Muffinlavania (1393)

@StealthySniper ongreiognenfg yea its my fault dont worry

JasonLiu19 (43)


All 21! (fix the invalid operand type error too)

JasonLiu19 (43)

@JasonLiu19 also didn't get to play my level

Muffinlavania (1393)

@JasonLiu19 yea im making more and i will add it when i make the others

BitanyaGebrtsad (0)

will u plz give me some cicylcs?

JasonLiu19 (43)

'''
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
|X---------------------------SSSS---SSSSSSSS--4Y-X+
|X------XXXXX----------------------------------4--X+
|X------3D333----------------SSSSSS---SSSSSS---444X+
|X------3333UUUUUUUXUWUXWU------------------SSSS--X+
|X---UUUU-------------------------SSSSSSS---------X+
|X---WWWW---------XXX------------------------SSSS-X+
|XSSSXXXXS---S-----------XXXXXX-------------------X+
|X---WWWW------XXXXXX-------------SSSSSSS---------X+
|X-------------SSSSSS-----------------------------X+
|X2-------XXXX--------UXWUXUWXUUWXUUXWUUW---------X+
|X--2---SSSS--------------------------SSSSSS------X+
|XA-2----------SSSSSS-----------------------------X+
|XXXXXXX---XXXXX--33333333--------xxxx------------X+
|XXX--------------3B3--------xx--------SSSSSSSSSSSX+
|XXX------------C-33-------------SSSSSSSSSSSSSSSSSX+
|XUU--111-----X---3xxx----x------------SSSSSSSSSSSX+
|X-┌┐1---1SSSSX---3---------------------SSSSSSSSSSX+
|X-└┘1-T-1----X---3---------xxx-------------SSSSSSX+
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
'''
S is danger D and 4 are triggers/gates

JasonLiu19 (43)

@JasonLiu19 '''
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
|X---------------------------SSSS---SSSSSSSS--4Y--X+
|X------XXXXX----------------------------------4--X+
|X------3D333----------------SSSSSS---SSSSSS---444X+
|X------3333UUUUUUUXUWUXWU------------------SSSS--X+
|X---UUUU-------------------------SSSSSSS---------X+
|X---WWWW---------XXX------------------------SSSS-X+
|XSSSXXXXS---S-----------XXXXXX-------------------X+
|X---WWWW------XXXXXX-------------SSSSSSS---------X+
|X-------------SSSSSS-----------------------------X+
|X2-------XXXX--------UXWUXUWXUUWXUUXWUUW---------X+
|X--2---SSSS--------------------------SSSSSS------X+
|XA-2----------SSSSSS-----------------------------X+
|XXXXXXX---XXXXX--33333333--------xxxx------------X+
|XXX--------------3B3--------xx--------SSSSSSSSSSSX+
|XXX------------C-33-------------SSSSSSSSSSSSSSSSSX+
|XUU--111-----X---3xxx----x------------SSSSSSSSSSSX+
|X-┌┐1---1SSSSX---3---------------------SSSSSSSSSSX+
|X-└┘1-T-1----X---3---------xxx-------------SSSSSSX+
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
'''

Muffinlavania (1393)

@JasonLiu19 sure ill try it, but i might have to make a few tweaks

Muffinlavania (1393)

@JasonLiu19 ok this right here works, ill add this as one of the levels

mazeo1='''
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
|X---------------------------SSSS---SSSSSSSS--4Y--X+
|X------XXXXX----------------------------------4--X+
|X------3D333----------------SSSSSS---SSSSSS---444X+
|X------3333UUUUUUUXUWUXWU------------------SSSS--X+
|X---UUUU-------------------------SSSSSSS---------X+
|X---WWWW---------XXX------------------------SSSS-X+
|XSSSXXXXS---S-----------XXXXXX-------------------X+
|X---WWWW------XXXXXX-------------SSSSSSS---------X+
|X-------------SSSSSS-----------------------------X+
|X222-----XXXX--------UXWUXUWXUUWXUUXWUUW---------X+
|X--2---SSSS--------------------------SSSSSS------X+
|XA-2----------SSSSSS-----------------------------X+
|XXXXUUU---XXXXX--33333333--------xxxx------------X+
|XUU--------------3B3--------xx--------SSSSSSSSSSSX+
|XUU------------C-33-------------SSSSSSSSSSSSSSSSSX+
|XUU--111-----X---3xxx----x------------SSSSSSSSSSSX+
|X-┌┐1---1SSSSX---3---------------------SSSSSSSSSSX+
|X-└┘1-T-1----X---3---------xxx-------------SSSSSSX+
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
'''
Muffinlavania (1393)

@JasonLiu19 yea sorry i kinda threw together some mazes and stuff, i just fixed

Name12 (144)

......
WOW!!!!
AMAZING! KEEP GOING!

Muffinlavania (1393)

@Name12 yayyyyyyyyy oh by the way i just got this idea, why not let the comment section make some mazes! Here are the things you have to follow though:

yourmaze='''
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
|X----------------------------------------------T-X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------X+
|X------------------------------------------------Y+
|X-┌┐---------------------------------------------X+
|X-└┘---------------------------------------------X+
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX+
'''

You can change the position of the treasure and everything inside, but the player and the outer walls must stay
Things you can do to edit it:
W: Putting this symbol means that it will appear to be a wall with a W, these can be walked through
U: Putting a U means that it can be walked through, but it appears as a normal wall
X: Just a normal wall, cant be walked through
A/1: The A is like a switch that activates the 1. If you move onto an A in the maze, all of the 1s will disappear. Before that the 1s are walls. There are also B and 2, and C and 3 that connect to each other

Another Note: All hallways should be at least 2 characters high, and three characters across

Also if you dont want to make anything its fine, but im probably gonna put this on the post

Name12 (144)

@Muffinlavania thanks for telling everyone how to make their own maze. you are awesome like usual.

Muffinlavania (1393)

@Name12 yayyyyy also if you want to make a maze try it out! Its actually pretty fun

Name12 (144)

@Muffinlavania ok. I will if I have spare time. thanks!

LoganKwan (3)


uhhhhh idk what happened... whenever i hit the Y on the maze it shows that