Skip to content

drdv/drdv-2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drdv-2048

A simple implementation of the 2048 game.

An example game with 974 moves stored in scores/example-score.json

The image is from a game with 974 moves stored in scores/example-score.json. The file count_moves.py reports:

move 'U': 288 times
move 'D': 209 times
move 'L':   2 times
move 'R': 475 times

Installation:

Ensure that drdv-2048.el is in a directory on your load-path, and add (require 'drdv-2048) to your ~/.emacs or ~/.emacs.d/init.el.

Notes:

  1. Given that there is 2048-game.el, I wrote this because I simply wanted to have some practice using Lisp, to have undo (requested by my daughter) and to be able to replay saved games (for no good reason).

  2. Start a game using M-x drdv-2048-play. Use arrows to move, u to undo, and w to save.

  3. Load a saved game using M-x drdv-2048-replay.

About

A simple implementation of the 2048 game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published