Go to file
MichaelS11 edbeeee440 Format and spelling fixes 2018-10-15 12:53:57 -07:00
screenshots Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
LICENSE Go Tetris 2017-03-27 13:07:29 -07:00
README.md Updated readme 2018-06-01 07:54:16 -07:00
ai.go Added comments 2018-10-02 18:21:08 -07:00
ai_test.go Format and spelling fixes 2018-10-15 12:53:57 -07:00
board.go Format and spelling fixes 2018-10-15 12:53:57 -07:00
boards.go Format and spelling fixes 2018-10-15 12:53:57 -07:00
boards_test.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
engine.go Added comments 2018-10-02 18:21:08 -07:00
globals.go Added comments 2018-10-02 18:21:08 -07:00
keyInput.go Added comments 2018-10-02 18:21:08 -07:00
mino.go Format and spelling fixes 2018-10-15 12:53:57 -07:00
mino_test.go Switch from log15 to Go log 2018-06-01 08:16:36 -07:00
minos.go Added comments 2018-10-02 18:21:08 -07:00
ranking.go Added comments 2018-10-02 18:21:08 -07:00
tetris.go Switch from log15 to Go log 2018-06-01 08:16:36 -07:00
view.go Added comments 2018-10-02 18:21:08 -07:00

README.md

Go Tetris

Golang Tetris for console window with optional AI

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 during game

Key Action
left move
z left rotate
x right rotate
right move
soft drop
hard drop
spacebar hard drop
p pause
q quit
i toggle AI

Keys start screen

Key Action
previous board
next board
spacebar start game
q quit

Features include

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

Screenshots

alt text

alt text

alt text

alt text

To do

  • Improve AI speed (slow on large boards)