Golang Tetris

带有可选人工智能的 Golang 俄罗斯方块控制台窗口。「Golang Tetris for console window with optional AI」

Github星跟踪图

Go Tetris

Golang Tetris for console window with optional AI

Features include

  • AI (use i key to toggle)
  • Lock delay
  • Next piece
  • Ghost piece
  • Top scores
  • Board choices
  • Edit boards

Compile

go get github.com/MichaelS11/go-tetris
go install github.com/MichaelS11/go-tetris

Play

Then run the binary created, go-tetris or go-tetris.exe

Keys start screen, Key, Action, ---, ---, ←, previous board, →, next board, spacebar, start game, ctrl e, edit board, q, quit, ## Keys during game, Key, Action, ---, ---, ←, left move, →, right move, ↓, soft drop, ↑, hard drop, spacebar, hard drop, z, left rotate, x, right rotate, p, pause, q, quit, i, toggle AI, ## Keys edit mode, Key, Action, ---, ---, ←, move cursor left, →, move cursor right, ↓, move cursor down, ↑, move cursor up, z, rotate left, x, rotate right, c, cyan block - I, b, blue block - J, w, white block - L, e, yellow block - O, g, green block - S, a, magenta block - T, r, red block - Z, f, free block, ctrl b, change board size, ctrl s, save board, ctrl n, save board as new, ctrl k, delete board, ctrl o, empty board, ctrl q, quit edit mode, ## Screenshots

alt text

alt text

alt text

alt text

To do

  • Improve AI speed (slow on large boards)

主要指标

概览
名称与所有者MichaelS11/go-tetris
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证Other
所有者活动
创建于2017-03-27 20:05:22
推送于2021-08-23 09:48:31
最后一次提交2021-08-23 17:48:31
发布数0
用户参与
星数77
关注者数3
派生数6
提交数24
已启用问题?
问题数0
打开的问题数0
拉请求数1
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?