Skip to content
← Back to Community
🔴[NEW]🔴 **🎮Play 2048 2️⃣🅾4️⃣8️⃣ In The Terminal💻** (in C➕➕) With *SIXEL* Graphics
Profile icon
h
has Hacker Plan
mat1

2048

YOU HAVE TO PLAY 2048 AT 🎮 https://2048.mat1.repl.run/rob/ 🎮 OTHERWISE IT WILL NOT WORK
This file cannot be displayed: https://storage.googleapis.com/replit/images/1546640695063_66be51019064221ab07b1c906cdeb253.pn

😁 Fun fact:
⇪ Upvoting this post will multiply your skill by the current upvote number!
This file cannot be displayed: https://storage.googleapis.com/replit/images/1546640800574_bfdbf4ede59fe520bafe9ba4ea8e1275.pn

Controls

Use WASD to move the tiles in the direction you so choose.

  • W = up ↑
  • A = left ←
  • S = down ↓
  • D = right →

Gameplay

If you combine two tiles of the same type, they will combine! Crazy, right? 🙃

Try to get to the ✨ mystical 2048 tile ✨
This file cannot be displayed: https://storage.googleapis.com/replit/images/1546641399984_1b5760f8caad460a681c970205fa6dd2.pn

(Above is a screenshot of the 2048 tile)

You lose the game when the board is completely filled up and there are no more similar adjacent tiles.
This file cannot be displayed: https://storage.googleapis.com/replit/images/1546641850018_30c99f6abf4337c9bf232080efd2bedc.pn

inspirational story or whatever

This game was my first ever real C++ project I've ever worked on so please comment with feedback and suggestions.
I made it using my Sixel and xTerm libraries but neither of them are perfect so they're not fully released yet.
Sixel is the thing that can actually render the pixels in better quality than usual, to make it look more polished.
xterm is the terminal thing Repl.it and Repl.run uses, but I just named my library after it because i've only ever tested it on xterm ¯\_(ツ)_/¯

Please ⬆ upvote ⬆ this post if you think 2048 is cool!
or if you don't
i don't really care as long as you upvote it

-mat

Voters
Profile icon
JoshuaKeesee1
Profile icon
z0r
Profile icon
anidkuser
Profile icon
fluffykitty421
Profile icon
BobTheTomatoPie
Profile icon
programmeruser
Profile icon
matdoesdev
Profile icon
davidyu9
Profile icon
LChan24
Profile icon
AustinZhang1
Comments
hotnewtop
Profile icon
tristanbeedell

👏🏻 incredible job!

Profile icon
mat1
Profile icon
ch1ck3n

image

Profile icon
DJWang

Screen Shot 2019-10-28 at 7.06.15 PM

EXPLAIN. IT HAS BEEN DOING THIS FOR 20 MINS

Profile icon
mat1

@DJWang Yeah, they unfortunately removed Sixel and this no longer works.

Profile icon
DJWang

@mat1. :(

Profile icon
allencaiDota

it's so cool

Profile icon
mat1

@allencaiDota Thank you!

Profile icon
wolf32669

good

Profile icon
mat1

@wolf32669 Thanks :)

Profile icon
Logimite

I WON DA GAME

Profile icon
mat1

@laksh5 Good job!

Profile icon
cloudrex

Asking too much for upvotes so I decided not to.

Profile icon
mat1

@cloudrex you gotta do what you gotta do to get upvotes these days ;)

Profile icon
HappyFakeboulde

This file cannot be displayed: https://storage.googleapis.com/replit/images/1546998416349_c9bc496dafaded57eeaa124b0c8562e1.pn
very good
have an upvote
now i will multiply my skill by 40

Profile icon
[deleted]

@HappyFakeboulde hello there

Profile icon
HappyFakeboulde
Profile icon
[deleted]
Profile icon
HappyFakeboulde

@IEATPYTHON horrible

Profile icon
[deleted]
Profile icon
HappyFakeboulde

@IEATPYTHON life is terrible
it's simple

Profile icon
[deleted]

@HappyFakeboulde not really

Profile icon
HappyFakeboulde

@IEATPYTHON but it is

Profile icon
Dededecent

Wow this is amazing!

Profile icon
mat1

@Boopydoop Thank you! :D

Profile icon
amasad

love it! Can it work on my phone?

Profile icon
mat1

@amasad It technically should work on phones with the WASD keys but it might be laggier than usual due to it using Sixels

Profile icon
minermaniac447

So what happens if you combine 2 2048s?

Profile icon
mat1

@minermaniac447 If you combine two 2048 tiles then the whole universe implodes on itself.

jk, you just get a 4096 tile

Profile icon
abdulrahmanmoha

@mat1 good job!

Profile icon
JHightower835

@abdulrahmanmoha Sorry to bother you but there is no volume.Could you please fix it.Thank you

Profile icon
mat1

@JHightower835 Hey, unfortunately, Repl.it currently does not support playing sounds in the terminal.

Profile icon
HappyFakeboulde

@JHightower835 also i don't get why you'd need sound for 2048

Profile icon
athut

Click on me!

Profile icon
athut

Click on me!

Profile icon
Dart

Finally, 2048 is blocked in my school now I can play again

Profile icon
mat1

@Zexogon Sorry to let you down but this Repl doesn't work anymore since Sixel was removed and Rob no longer works at Repl.it :(

Profile icon
Dart

@mat1 ;-;

Profile icon
AQDProjects

I only get the message to upvote, no 2048

Profile icon
mat1

@AQDProjects Yeah, they unfortunately removed Sixel and this game no longer works :(

Profile icon
slip1244

rip it's dead now

Profile icon
mat1

@nithilan4 yeah unfortunately rob mode is broken now and there's nothing i can really do about it :(

Profile icon
MATTHEWBECHTEL

Noooo. Why?
@mat1

Profile icon
SPQR

Hey chief, if you don't mind could you help me out with the Sixels thing? I'm going to try to make a console RPG with them and I honestly haven't a clue how they work lol (alternatively, I could "borrow" the code in your sixels library (only if you're ok with that), I'd make sure to give you proper credit for it)

Profile icon
mat1

@SPQR Yeah, you're allowed to borrow my Sixel code but if you post it on Repl Talk don't forget to credit me ;)
If you want to learn how Sixels work internally, you can read the Sixel Wikipedia article and the VT100 docs

Profile icon
SPQR

@mat1 Thanks :D I'll put some comments in my code so I don't forget. If by some miracle I do forget to credit you, though, or if you don't feel it's clear enough, let me know and I'll fix it. This will take my game to the point of actually being really cool I think, so I want to make sure you get credit for it. :)

Profile icon
theprobobxd

R.i.p I tried it on the iPad It didn’t work 🤣

Profile icon
mat1
Profile icon
JSer

doesnt work oof
This file cannot be displayed: https://storage.googleapis.com/replit/images/1547475212626_a8a03e9b653133a6cac7233c1ff72bd5.pn

Profile icon
mat1

@JSer oh crap I messed something up I'll fix it when I get home