PROJECT DOSSIER // github.com

izabera/bitwise-challenge-2048

基于位运算的 2048 游戏。这是一个通过位运算实现了经典的 2048 游戏,仅一个文件(.bash)、零依赖、不到 200 行代码。与常见的二维数组模拟棋盘方式不同,该项目巧妙地利用位运算管理游戏状态和逻辑,将整个 4x4 棋盘压缩存储在一个 64 位整数中,所有移动、合并和生成均通过位操作实现。

其他 VERIFIED 其它 ★ 295
README.md 更新于:2026-11-12 23:00:04

The Bitwise Challenge: 2048

This is an implementation of the classic 2048 game in your terminal:
image

Share your game state with friends by just sending them a number!

If the $STATE env variable isn't set, it generates a fresh random seed.

Otherwise the board state and all future spawned cells will be deterministic.