🍺 BREW Explorer

← all formulae

c2048

brew install c2048 v1.0.3 MIT

Console version of 2048

22
30-day installs · #6509
78
90-day · #6164
427
365-day · #5483
659
★ GitHub stars · updated 4mo ago

GitHub topics

2048 2048-clone 2048-game ansi-colors c cli command-line game linux

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Console version of 2048",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:04+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "c2048",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-04-02T08:10:10Z",
  "github_readme_excerpt": "2048.c\n======\n\n[Spanish](README_es.md)\n\n![screenshot](screenshot.png)\n\nConsole version of the game \"2048\" for GNU/Linux\n\n### Gameplay\n\nYou can move the tiles in four directions using the arrow keys: up, down, left, and right. All numbers on the board will slide into that direction until they hit the wall and if they bump into each other then two numbers will be combined into one if they have the same value. Each number will only be combined once per move. Every move a new number 2 or 4 appears. If you have a 2048 on the board you have won, but you lose once the board is full and you cannot make a move.\n\n### Requirements\n\n- C compiler\n\nTested on: GNU/Linux, FreeBSD, OpenBSD\n\n### Installation\n\nOn Debian (based) systems:\n\n```\nsudo apt install 2048\n```\n\nOr compile from source (recommended):\n\n```\nwget https://raw.githubusercontent.com/mevdschee/2048.c/master/2048.c\ngcc -o 2048 2048.c\n./2048\n```\n\n### Running\n\nThe game supports different color schemes. This depends on ANSI support for 88 or 256 colors. If there are not enough colors supported the game will fallback to black and white (still very much playable). For the original color scheme run:\n\n```\n./2048\n```\n\nFor the black-to-white color scheme (requires 256 colors):\n\n```\n./2048 blackwhite\n```\n\nFor the white-to-black color scheme (requires 256 colors):\n\n```\n./2048 whiteblack\n```\n\nFor the blue-to-red color scheme (requires 256 colors):\n\n```\n./2048 bluered\n```\n\nShow the version information\n\n```\n./2048 --version\n```\n\nShow help message (shows all supported command line options):\n\n```\n./2048 --help\n```\n\n### Contributing\n\nContributions are very welcome. Always run the tests before committing using:\n\n```\n$ ./2048 test\nAll 13 tests executed successfully\n```\n\nCompile with extra warnings using:\n\n```\ngcc -std=c99 -Wextra -o 2048 2048.c\n```\n",
  "github_repo": "mevdschee/2048.c",
  "github_stars": 659,
  "github_topics": [
    "2048",
    "2048-clone",
    "2048-game",
    "ansi-colors",
    "c",
    "cli",
    "command-line",
    "game",
    "linux"
  ],
  "homepage": "https://github.com/mevdschee/2048.c",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 22,
  "installs_365d": 427,
  "installs_90d": 78,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "c2048",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6509,
  "rank_365d": 5483,
  "rank_90d": 6164,
  "raw_hash": "75bcb7fa19d139f5",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/c2048.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "1.0.3",
  "versioned_formulae": [],
  "why_use_this": null
}