Share your repls and programming experiences

← Back to all posts
2048 RECREATION IN PYTHON
Junge29

Why I'm Reposting


This is a repl I created a while ago, but deleted because it did horribly! Thanks to @Coder100 he told me not to delete my posts and post often, so I'm putting it back up!

Ok how to play:


So this is the mobile 2048 game, but in python!!! Use your keys to move the tiles around, and they will merge. If you fill up your board and nothing else can be done, GAME OVER! Try to get the 2048 tile!!!!!


Check this game out, give me some feedback if you have any! Thanks so much, especially to @Coder100

  • Update: Thanks to @SixBeeps for the suggestion, direction keys have been changed to WASD.

  • Update 2: Thank you @QuantumCodes for suggesting using hyphens instead of hashtags to draw the boxes.

Voters
justaperson22
SwiftOwl
PixiGem
maxina
QuantumCodes
SixBeeps
JWZ6
Coder100
CosmicBear
ch1ck3n
Comments
hotnewtop
QuantumCodes

Wow! Use dashes/hyphen/underscore.. looks more neat

Junge29

Where do you mean @QuantumCodes ? Like, Pleasechoosea__direction. [W][A][S]_[D] ? Also, thanks for the suggestion, I just need a little more detail ;)

Junge29

@QuantumCodes wait, I just realized when I used underscores it triggered the markdown effect! Sorry, so I meant do you want me to underscore this sentence?

Please choose a direction. [W] [S]

QuantumCodes
Junge29

@QuantumCodes I’m sorry, I’m so bad at this. I just was confused as to what you meant by add dashes/hyphens/underscores. Like, where should I put them? Somewhere in the code, or in the game? I really appreciate your feedback, just like I said, I don’t completely understand, because I’m such an amateur!

QuantumCodes

@Junge29 no.. im a beginner lol. You know better than me. Yesterday i was trying to get data from a website through its HTML CODE!! (Then someone showed me bs4 module :P) ok. So i meant that u can use those symbols in-game. To make the boxes

Junge29

Ahh, now I understand! Thanks for the suggestion. Updating now… @QuantumCodes and btw I make mistakes all the time ;) I guess we’re all just learning

QuantumCodes

@Junge29 do you know bs4?

QuantumCodes

@Junge29 neat! Boxes

Junge29

I do not @QuantumCodes

Junge29

Also, yes it’s neat! Thanks to you @QuantumCodes

SixBeeps

Actually quite performant, nice.

I'd switch the controls to use WASD instead of LRUD. You should also learn arrays, those'll save you so much more time and code.

Junge29

Updated, thanks for the suggestion! @SixBeeps

JULIODIAZ1

highest: 128

Junge29
JWZ6

cool

Junge29

Thanks! @JWZ6

JWZ6
Coder100

Nice!!

Junge29

Thanks! @Coder100

ch1ck3n

ohh noice

Junge29

Thanks so much! @ch1ck3n