You are not logged in.

#1 2015-01-07 23:28:06

alewmoose
Member
Registered: 2015-01-07
Posts: 3

Console version of the 2048 game

Hi guys,

I'd like to intdroduce my version of the 2048 game.
It's ncurses-based, written in c.
Distinguishing features are animation and autosave.

I'm not an experienced programmer, so I would appreciate any feedback very much!

https://aur.archlinux.org/packages/2048term-git/
https://github.com/alewmoose/2048-in-terminal/

Offline

#2 2015-01-08 01:04:26

genEric
Member
From: Sweden
Registered: 2013-09-26
Posts: 38

Re: Console version of the 2048 game

Nice. Thanks alewmoose... smile


(As additional info, In case you want to add to your Github page, it installed fine in OS X as well.)


[genEric@…] ~$

Offline

#3 2015-01-08 05:19:39

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: Console version of the 2048 game

The animations are extremely fluid! One question though: When there's a game over, why does it not remove the game state when the user quits? Is this intended?

Also, forgot to mention that the installed binary conflicts with https://aur.archlinux.org/packages/2048.c/. You may want to mention that in the PKGBUILD or change the compiled binary name.

Last edited by ShadowKyogre (2015-01-08 05:40:27)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#4 2015-01-08 08:23:24

alewmoose
Member
Registered: 2015-01-07
Posts: 3

Re: Console version of the 2048 game

genEric, thanks!

ShadowKyogre, yes, it's intended and corresponds to original game behavior.
I edited PKGBUILD, the binary name is "2048t" now.

Offline

#5 2015-01-08 12:29:31

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Console version of the 2048 game

Cool smile We had to write a graphical one (albeit in Java) for a university project.

If you feel like doing some more work (er.. if you feel like opening up a whole other can of worms wink) you might want to look into autosolvers. The possilities are endless and it's great fun! See this SO post for a start.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#6 2015-01-08 13:48:57

alewmoose
Member
Registered: 2015-01-07
Posts: 3

Re: Console version of the 2048 game

Thanks, Unia. I know nothing about AI, but maybe I'll try to figure something out smile

Offline

#7 2015-01-08 16:27:36

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Console version of the 2048 game

It's not really AI per sé, just some fancy algorithms. I knew nothing about it when I started working on it (we chose to do it as an "extra", boy were we unprepared tongue) and ended up with something that somehow works, but somehow doesn't big_smile I did not have enough time left to properly debug everything, so we decided to roll with it as a demo.

There was one specific implementation in C that is really simple to understand, but incredibly smart at the same time: https://github.com/Naruil/2048-AI/blob/master/2048.c


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#8 2015-01-20 12:12:54

smiszym
Member
Registered: 2014-04-04
Posts: 14

Re: Console version of the 2048 game

Very nice game! smile And I like the sources as well, they're clean and simple.

Offline

Board footer

Powered by FluxBB