• Stars
    star
    802
  • Rank 56,815 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 2 years ago

Reviews

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

Repository Details

๐ŸŽ‰ 2048 in your terminal

term2048

Build status Coverage status Pypi package

term2048 is a terminal-based version of 2048.

https://github.com/bfontaine/term2048/raw/master/img/term2048.png

Install

pip install term2048

To upgrade a previous installation, use:

pip install -U term2048

To install via snap:

sudo snap install term2048

Install from source

git clone https://github.com/bfontaine/term2048.git && cd term2048
[sudo] python setup.py install

Play

term2048

Then use arrow keys to move. VI keys (h,j,k,l) are also supported.

Use -h to check the list of available options, and --rules for the game rules. Press <space> at any time during the game to pause it. You can resume it later using term2048 --resume.

Tests

Clone this repo, then:

[sudo] make deps
make check

Note: while term2048 should work on Windows, tests are meant to run on UNIX-like OSes and term2048.keypress-related tests may fail on Windows.

Contributions

  • --version flag added by @aminb
  • --rules flag added by @cardern
  • Short -r and -v flags added by @yankuangshi
  • Resume feature added by @pravj
  • Snap installation method added by @LaughingLove

v0.2.0

  • Python 2.6 and 3.x support by @shaunduncan
  • Tests instructions fixed by @olafleur
  • Spawn probabilities fixed by @frankh
  • Colors improved by @idosch
  • hjkl keys support by @aminb
  • Windows support by @valtron
  • AZ mode by @JosephRedfern
  • The first file-related tests were added by @taeram

More Repositories

1

rfc

๐Ÿ“„ Read RFCs from the command-line
Shell
217
star
2

grape

๐Ÿ‡ Syntax-aware grep-like for Clojure
Clojure
150
star
3

freesms

๐Ÿ“ฑ Send SMSes to yourself through the 'Free Mobile' SMS API
Python
55
star
4

httpdoc

๐Ÿ““ HTTP documentation right in your terminal.
Go
35
star
5

clygments

๐ŸŽจ Code highlighting using Pygments in Clojure
Clojure
29
star
6

vanish

โœจ Temporary files and directories made easy
Go
27
star
7

Katas

โ˜• 27 katas; each in a different language (not only CoffeeScript, GitHub!)
CoffeeScript
20
star
8

clj

๐Ÿจ (Clojure-like) Lazy iterators in Python
Python
19
star
9

Dotfiles

๐Ÿญ personal dotfiles
Vim Script
18
star
10

Brewfile.vim

Brewfile syntax for Vim
Vim Script
16
star
11

gzsize

Print the uncompressed size of a GZip file.
C
13
star
12

lein-fore-prob

A leiningen plugin to make a local copy of a problem from 4clojure
Clojure
12
star
13

badges2svg

Replace your README badges with resolution-independent SVG ones
Ruby
10
star
14

iwc

Interactive wc(1)
C
10
star
15

Historize

jQuery plugin which allows you to keep an history on an input and a tab-completion system, like in a shell.
JavaScript
9
star
16

drive

Google Drive client wrapper in Python
Python
9
star
17

jquery-djangocsrf

A lightweight jQuery plugin to automatically add Django CSRF token to your AJAX calls
JavaScript
9
star
18

ud

๐Ÿค˜ Urban Dictionary in your terminal.
Ruby
8
star
19

homebrew-tools

๐Ÿ”ง Some tools for contributing to Homebrew
Ruby
8
star
20

jsons

๐Ÿ’ผ Read & write .jsons files in Go
Go
7
star
21

mvb

โช mv. reversed.
Shell
6
star
22

ascii2svg

Draw SVG graphs from text files
JavaScript
6
star
23

homer

Daemonize all the things
C
6
star
24

homebrew-search

๐Ÿ”Ž Unofficial Homebrew search engine
Ruby
6
star
25

wptranslate

Wikipedia-based command-line translator
Python
5
star
26

blabbr

Twitter bot
Python
5
star
27

zprint.vim

A Vim plugin that runs zprint when you save.
Vim Script
5
star
28

homebrew-utils

๐Ÿš™ Homebrew tap for personal utilities
Ruby
5
star
29

pouf

play random sounds from your command-line
Ruby
5
star
30

RemindMe

Web app to create SMS reminders
Python
4
star
31

k0s

8 less than k8s.
4
star
32

flatkeys

flatten dict keys in Python
Python
4
star
33

Dazibao

school project
C
4
star
34

crosswords

Crosswords help in the terminal
Python
4
star
35

UP7Connect

Connection to Paris Diderotโ€™s WiFi made easy.
Ruby
4
star
36

gsutil-extra

gsutil with extra features
Ruby
4
star
37

Graphs.rb

Some Ruby functions to manipulate graph files
Ruby
4
star
38

ctrie

Compact tries in Python
Python
4
star
39

simple-progress

Simple progress bar for your Clojure programs
Clojure
4
star
40

pipe2mattermost

Pipe text into Mattermost
Go
3
star
41

task.sh

Easy step-by-step Bash scripts output
Shell
3
star
42

Summarify

Python library to get a title & description for a URL
Python
3
star
43

p7magma-web

Web interface for p7magma
Python
3
star
44

omgrofl.vim

Vim syntax file for the Omgrofl language
Vim Script
3
star
45

expd

๐Ÿ“Ž Expand text snippets on the command-line
Ruby
3
star
46

p7magma

A Python interface to Magma (a website for CS students at Paris Diderot)
Python
3
star
47

which

the `which` youโ€™re used to, written in Go.
Go
3
star
48

AjaxEdit

Lightweight jQuery plugin to edit HTML text without reloading the page.
JavaScript
3
star
49

k

Enums for Python
Python
3
star
50

gosh

Simple shell written in Go
Go
3
star
51

wheresmystuff

๐Ÿ“ฆ Whereโ€™s that stuff I ordered on Amazon yesterday?
Go
3
star
52

eolas

Toy programming language
Python
3
star
53

toggle-text

Quick library to make togglable text
JavaScript
3
star
54

movielens-data-analysis

Some code to analyse MovieLensโ€™ datasets
Python
3
star
55

up

one command to update all your package managers
Shell
3
star
56

ArrayDB

Use your arrays as DB tables, and make queries on them.
JavaScript
2
star
57

Advent-of-Code-2017

My solutions to the Advent of Code 2017
Go
2
star
58

ecqopcd

A Website that tells you if you can go out running in Paris tomorrow
Python
2
star
59

LazyScraper

The easy way to make lazy entity-oriented Web scrapers
Ruby
2
star
60

didelcli

DidEL in the command-line.
Python
2
star
61

Antroid

School project
Go
2
star
62

M1Algo

school project
Python
2
star
63

trigrams

Trigrams-based random text generation
Python
2
star
64

AC6

school project
OCaml
2
star
65

web-pp

๐Ÿ“œ Web port of alfred-pp
Python
2
star
66

EulerSolutions

Solutions to the Project Euler problems in Python
Python
2
star
67

pykbg

Python wrapper around Kelbongooโ€™s website
Python
2
star
68

p7doi

๐Ÿ”— Open a research paper in your browser from its DOI
Python
2
star
69

previewer

Generate link previews as an image
Python
2
star
70

etutriche

Automatically detect cheating students
Python
2
star
71

shortjs

Shorten numbers
JavaScript
2
star
72

Doto

Quick & easy builders in Java
Java
2
star
73

SocioNoel

Books mentioned in #SocioNoel on Twitter, 2015
Ruby
2
star
74

epp

(fast) EDN pretty-printer
Go
2
star
75

clython

Call Python from Clojure
Clojure
2
star
76

gostruct

populate Go structs from webpages using CSS selectors
Go
2
star
77

shutils

๐Ÿ”Œ shell utilities
Go
2
star
78

Pheasant.js

Easy colors manipulations.
JavaScript
2
star
79

alfred-pp

โฉ Alfred workflow to open Paris Diderot CS teachersโ€™ personal homepages
Python
2
star
80

classy

Inspect .class Java files from Go
Go
2
star
81

tweets2fortune

script to transform a user's tweets into a fortune file
Io
1
star
82

WhitePage

simple online scratch pad
JavaScript
1
star
83

PrettyInputs

Make your inputs look like Dropboxโ€™ ones.
JavaScript
1
star
84

Teebr

๐Ÿฑ Twitter accounts recommendation
Python
1
star
85

webassets-iife

webassets filter to wrap a JS bundle in an IIFE to avoid global leaks and improve minification
Python
1
star
86

Reversi

Reversi game for the C class (LC4)
C
1
star
87

solarized-quora

Solarized theme for Quoraโ€™s code blocks
CSS
1
star
88

heck

Hexadecimal calculator
Go
1
star
89

cryptopals-solutions

Python
1
star
90

sq

๐Ÿ“„ Bulk PDFs downloader
Ruby
1
star
91

slg

๐Ÿค˜ Slengo.it in your terminal.
Ruby
1
star
92

advent-of-code

Advent of Code 2015-2021 solutions in various languages
Python
1
star
93

clr

clear temporary files
Shell
1
star
94

defcli

Utilities library for some CLI tools
Ruby
1
star
95

lines

Experimental tools for line-based file formats
Go
1
star
96

ghtasklist

โœ”๏ธ Fast Github task list formatting
Go
1
star
97

E.vim

E vim syntax file
Vim Script
1
star
98

.github

๐Ÿฅ Default community health files for the bfontaine user on GitHub.
1
star
99

FormulaJS

Basic formulas interpreter
JavaScript
1
star
100

neural-nets

Playing with Tensorflow
Python
1
star