pi-2048

2048 sliding tile puzzle for pi coding agent

Package details

extension

Install pi-2048 from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-2048
Package
pi-2048
Version
1.1.1
Published
Mar 7, 2026
Downloads
30/mo · 4/wk
Author
artale
License
MIT
Types
extension
Size
18.5 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "extensions/pi-2048.ts"
  ],
  "commands": [
    "2048"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-2048

The classic 2048 sliding tile puzzle for pi coding agent.

Install

npm i -g pi-2048

Add to ~/.pi/agent/settings.json:

{ "packages": ["npm:pi-2048"] }

Play

/2048

Controls

Key Action
←↑↓→ / WASD / HJKL Slide tiles
U Undo last move
T Cycle color theme
R Restart
Q / Esc Quit

Themes

Classic, Neon, Ocean, Ember, Grayscale, Sakura

Features

  • 4×4 grid with proper merge rules
  • High score persistence (~/.pi/2048/save.json)
  • 1-level undo
  • 6 color themes
  • Box-drawing borders with full 24-bit color