Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
/go-tetrisPublic archive

Golang Tetris for console window with optional AI

License

NotificationsYou must be signed in to change notification settings

MichaelS11/go-tetris

Repository files navigation

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-tetrisgo install github.com/MichaelS11/go-tetris

Play

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

Keys start screen

KeyAction
previous board
next board
spacebarstart game
ctrl eedit board
qquit

Keys during game

KeyAction
left move
right move
soft drop
hard drop
spacebarhard drop
zleft rotate
xright rotate
ppause
qquit
itoggle AI

Keys edit mode

KeyAction
move cursor left
move cursor right
move cursor down
move cursor up
zrotate left
xrotate right
ccyan block - I
bblue block - J
wwhite block - L
eyellow block - O
ggreen block - S
amagenta block - T
rred block - Z
ffree block
ctrl bchange board size
ctrl ssave board
ctrl nsave board as new
ctrl kdelete board
ctrl oempty board
ctrl qquit edit mode

Screenshots

alt text

alt text

alt text

alt text

To do

  • Improve AI speed (slow on large boards)

About

Golang Tetris for console window with optional AI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp