Name Last Update
_2048 Loading commit data...
.gitignore Loading commit data...
Play2048.py Loading commit data...
README.md Loading commit data...
binfile.py Loading commit data...
cli_client.py Loading commit data...
viewer.py Loading commit data...
walker.py Loading commit data...

2048

A python library to emulate the game 2048

cli_client.py

A curses client to play 2048 on the command line

Invocation

Usage: cli_client.py [options]

Options:
  -h, --help            show this help message and exit
  -s BOARD_SIZE, --size=BOARD_SIZE, 
                        default=4
                        Size of board.
  -f SAVE_FILE, --file=SAVE_FILE
                        default='.2048save'
                        Location of save file

walker.py

A curses-based routine to brute force the highest possible score.

Invocation

Usage: walker.py [options]

Options:
  -h, --help            show this help message and exit
  -s BOARD_SIZE, --size=BOARD_SIZE
                        Size of board [default: 4]
  -f SAVE_FILE, --file=SAVE_FILE
                        Location of save file [default: .2048walker]
  -l, --slow            Start in slow mode
  -g GAME_FILE, --game-file=GAME_FILE
                        Location of save file to load

Run-time commands:

  • q : write current hi score game object to file and exit
  • s : toggle slow mode
  • t : toggle run time display
  • i : toggle hi score display
  • c : toggle score display
  • d : toggle depth display
  • m : toggle messages display
  • h : toggle help display