Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahamas10/bash-2048

2048 written in bash
https://github.com/bahamas10/bash-2048

Last synced: 2 months ago
JSON representation

2048 written in bash

Awesome Lists containing this project

README

        

bash 2048
=========

My take at http://gabrielecirulli.github.io/2048/ in pure bash

![screenshot](screenshot.png)

Usage
-----

**note:** try `-a` for awesome animations

$ ./2048 -h
Usage: 2048 [-a] [-b] [-h] [-g ] [-s ]

Options
-a enable animations, note they are slow and weird
-b disable color output, b for boring!
-g the goal piece, defaults to 2048
-h print this message and exit
-k keep playing after winning
-s the size of the board, defaults to 4

External Utilities
------------------

`tput` is the only external command used in this bash script to figure out the proper
codes to print for colorized output. If your system lacks `tput`, it will still work
without color support.

Issues
------

- Performance is lacking... the algorithm could probably be optimized
- Animations with `-a` are slow and wonky

License
-------

MIT License