Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themattrix/sed2048
The 2048 game implemented in sed
https://github.com/themattrix/sed2048
Last synced: 2 months ago
JSON representation
The 2048 game implemented in sed
- Host: GitHub
- URL: https://github.com/themattrix/sed2048
- Owner: themattrix
- License: mit
- Created: 2014-03-24T06:57:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-10T08:06:38.000Z (about 5 years ago)
- Last Synced: 2024-08-01T16:43:47.027Z (5 months ago)
- Language: Shell
- Size: 38.1 KB
- Stars: 107
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- my-awesome-github-stars - themattrix/sed2048 - The 2048 game implemented in sed (Shell)
README
2048.sed
========[![Build Status](https://travis-ci.org/themattrix/sed2048.svg?branch=master)](https://travis-ci.org/themattrix/sed2048)
This is a sed implementation of the [2048 game](http://gabrielecirulli.github.io/2048/). All of the game logic is in sed. Bash is used to supply the sed script with user input and with pseudo-random numbers.
Use the `W`, `A`, `S`, `D` keys to control. Run with:
$ ./src/2048.sh
Disable colorized output with:
$ ./src/2048.sh --no-color
Gameplay difference from the original 2048 game:
- None that I'm aware of :)
Here's a [demo of me button-mashing](http://showterm.io/672c38e5dfe9dd0b58330).
> Note for OS X users: The version of sed installed by default has different options than the Linux one. Notably, it does not have the extended-regex option `-r`. A compatible version is available through [homebrew](http://brew.sh/): `brew install gnu-sed --default-names` (the `--default-names` flag is used to ensure it installs as `sed` and not `gsed`). You can also build the latest version from here: http://sed.sourceforge.net/