Go to file
MichaelS11 b9eaf9d056 Updated readme 2018-06-01 07:48:23 -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:48:23 -07:00
ai.go Improved AI 2018-05-25 19:02:00 -07:00
ai_test.go Improved AI 2018-05-25 19:02:00 -07:00
board.go Improved AI 2018-05-25 19:02:00 -07:00
boards.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
boards_test.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
engine.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
globals.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
keyInput.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
mino.go Improved AI 2018-05-25 19:02:00 -07:00
mino_test.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
minos.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
ranking.go Added boards, including a heart :) 2018-02-14 12:57:02 -08:00
tetris.go Improved AI 2018-05-25 19:02:00 -07:00
view.go Added boards, including a heart :) 2018-02-14 12:57:02 -08: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, tetris or 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)