Giter Site home page Giter Site logo

2048.c's People

Contributors

barak avatar breadknock avatar colojose avatar hyperupcall avatar jasonkliu avatar jr1221 avatar klange avatar limows avatar mdevlamynck avatar mevdschee avatar mhunicken avatar mones avatar rudxain avatar sdushantha avatar sohang3112 avatar stasm avatar subhang avatar tobscore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

2048.c's Issues

Add `--help` CLI argument

Add command line help by identifying flags --help or -h. All CLI tools have these arguments, so it's a bit strange that 2048 doesn't.

OS X

It work fine on OS X, you can remove the GNU/LINUX and replace it by UNIX (maybe it's up to you)
😄

implicitly declaring library function 'snprintf' with type...

gcc -o 2048 2048.c
2048.c:37:2: error: implicitly declaring library function 'snprintf' with type 'int (char *, unsigned long, const char *, ...)' [-Werror,-Wimplicit-function-declaration]
snprintf(color,length,"\033[38;5;%d;48;5;%dm",*foreground,*background);
^
2048.c:37:2: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 error generated.

about ascii

I can't understand the ascii about left arrow, right arrow, up arrow and down arrow .
I just know letter D is 68,what about left arrow?

Error! Cannot read keyboard input!

I got this error when I was trying to run it on a virtual machine, is it any solution for it?

    ·      ·      ·      ·


    4      ·      ·      2


    ·      ·      ·      ·


    ·      ·      ·      ·


        ←,↑,→,↓ or q
Error! Cannot read keyboard input!
$>

a-z mode

when dealing with higher numbers it becomes a problem so it's better to use a-z mode

It works fine under FreeBSD

The current version of 2048.c(not my fork) was compiled with clang and works fine under FreeBSD.
You may mention this in README.md

Makefile improvement

You should move ?= to += in CFLAGS delete the 2048: 2048.c so that make uses the implicit rule. It would use CFLAGS and LDFLAGS from the environment. It's useful for package building.

Desktop file

Hi Maurits,

First, thanks for your game ;-) I like text games and yours is nice one. While packaging it for Debian I've added a desktop file and icon. It's recommended that desktop files to be distributed upstream, so others don't have to do the same work again, so feel free to add them to your git (license is also MIT, as stated on copyright file). Files are available from packaging git:
https://salsa.debian.org/games-team/2048/-/tree/master/debian

best regards and happy new year!

1

1

Add '2048's tags/topics

You may want to add the following topics:
2048
2048-game
2048-clone
And anything which you think is fine.

Works on OpenBSD!

Hi, I compiled 2048.c with both gcc and clang on an i386(the architecture) which was running OpenBSD and easily played it.
P.S.: I think it can be easily compiled and ran on most Unix-like operating systems including GNU/Linux, BSDs and Mac.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.