twenty48

2048 game on CLI

  • 所有者: alyyousuf7/twenty48
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Twenty48

CircleCI codecov

Play 2048 from CLI

2048 on CLI

Use up, down, left and right arrow keys to play, and ESC to quit.

The default grid size is 8x8 which can be changed be setting -width and -height flags.

$ twenty48 [-width=8] [-height=8]

Install

Requires Golang:

$ go get -u github.com/alyyousuf7/twenty48/cmd/twenty48

Development

On host machine with Golang installed:

$ make test   # execute test
$ make binary # build the executable in bin/

Or using Docker:

$ make shell  # jump into a container
root@container:/go/src/github.com/alyyousuf7/twenty48# make test
root@container:/go/src/github.com/alyyousuf7/twenty48# make binary
root@container:/go/src/github.com/alyyousuf7/twenty48# exit

The Docker container mounts a volume to bin/ to copy executable to host machine.

TODOs

  • Write more tests
  • Maintain scoreboard
  • Display game over text

PRs are most welcome!

License

MIT

主要指標

概覽
名稱與所有者alyyousuf7/twenty48
主編程語言Go
編程語言Go (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-04-30 10:59:17
推送於2020-02-17 11:27:28
最后一次提交2020-02-17 15:58:39
發布數1
最新版本名稱v0.1.0 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數53
關注者數3
派生數2
提交數16
已啟用問題?
問題數1
打開的問題數1
拉請求數2
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?