• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 10 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The 2048 game implemented in sed

2048.sed

Build Status

This is a sed implementation of the 2048 game. 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.

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: 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/

More Repositories

1

bash-concurrent

Bash function to run tasks in parallel and display pretty output as they complete.
Shell
1,244
star
2

docker-tox

Docker base image for running tox with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, PyPy, and PyPy3.
Dockerfile
62
star
3

python-pypi-template

Template for quickly creating a new Python project and publishing it to PyPI.
Python
49
star
4

poker_hand

Tiny sed script for identifying poker hands.
35
star
5

vagrant-docker-teamcity

TeamCity inside Docker inside Vagrant
Shell
17
star
6

musings

Like a blog, but easier.
C
15
star
7

docker-pyenv

Base image for installing Python versions with pyenv.
Dockerfile
14
star
8

bashup

A (toy) language that compiles to bash.
Python
10
star
9

interpose

Automatically generate interposing C++ wrappers for C APIs
Python
8
star
10

python-pollute

A decorator and context manager for temporarily modifying os.environ.
Python
5
star
11

python-temporary

Context managers for managing temporary files and directories.
Python
5
star
12

minecraft-fig

Minecraft server, map generator, and map web server orchestrated with Docker Compose (formerly Fig).
Shell
4
star
13

python-abduct

Capture stdout/stderr and optionally release when an exception occurs.
Python
4
star
14

docker-tox-base

Docker base image for running tox with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, PyPy, and PyPy3.
Dockerfile
4
star
15

python-simian

A decorator for easily mocking out multiple dependencies by monkey-patching.
Python
4
star
16

panda-watching

Watch a panda - the camera moves with your head!
Python
2
star
17

raspberry

Fun with Raspberry Pi GPIO
Python
2
star
18

minecraft-cloud

An on-demand Minecraft server using your favorite cloud provider.
Shell
2
star
19

coffeebar

Simple web app for ordering coffee and notifying the barista by SMS.
HTML
2
star
20

funnel

Funnel Python output somewhere else
Python
1
star
21

cnake

C++ producer which forks off a Python consumer
C++
1
star
22

vagrant-dev-env

My continuously-evolving Linux development environment.
Puppet
1
star
23

cpp11_sandbox

Sandbox for testing out various C++11 features.
C++
1
star
24

docker-develop

My ever-evolving development environment
Shell
1
star
25

iphone-bootcamp

Notes and assignments for the Chicago iPhone Bootcamp (04/13)
Objective-C
1
star