MIT License

项目介绍

samtay/tetris 是一个托管在 GitHub 上的开源项目,主要使用 Haskell 编写,采用 MIT License 许可证,目前获得 1.0k 个 Star、44 次 Fork。

仓库全名
samtay/tetris
开源许可证
MIT License
Star 数
1.0k
Fork 数
44
未关闭 Issue
12

README 摘要

A terminal interface for Tetris installation Installation on MacOS and Linux is outlined below. Windows support is questionable, but you can try to install from source. MacOS Installation on a Mac is simple with Homebrew: Arch Linux Arch Linux users can install from the AUR, e.g. Snapcraft Thanks to @thefenriswolf this is available on most Linux distributions via snapcraft: install from source First get stack. Then…

完整内容见 GitHub 原始 README 或本页 。

常见问题

tetris 用什么语言开发?

主要使用 Haskell 编写,采用 MIT License 许可证,目前有 1.0k 个 Star。

tetris 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 tetris 的源码?

可以直接克隆仓库:git clone https://github.com/samtay/tetris.git,默认分支为 main;安装与运行步骤见仓库 README。

tetris 最近还在维护吗?

仓库最近一次更新为 2025年2月28日,当前有 12 个未关闭 Issue;Star 数为 1.0k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A terminal interface for Tetris

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1135
价值分
633
活跃状态
活跃

语言占比

Dockerfile
Haskell

Release

README

tetris Build Status

A terminal interface for Tetris

terminal-gif

installation

Installation on MacOS and Linux is outlined below. Windows support is questionable, but you can try to install from source.

MacOS

Installation on a Mac is simple with Homebrew:

brew install samtay/tui/tetris
Arch Linux

Arch Linux users can install from the AUR, e.g.

yay -S tetris-terminal-git # or yaourt, etc.
Snapcraft

Thanks to @thefenriswolf this is available on most Linux distributions via snapcraft:

sudo snap install tetris-thefenriswolf
alias tetris=/snap/bin/tetris-thefenriswolf.tetris # add to .bashrc or .zshrc etc.
install from source

First get stack. Then

git clone https://github.com/samtay/tetris.git
cd tetris
stack install tetris

usage

The default game is run by simply executing the tetris command. If the unicode characters look a bit wonky in your terminal, you can also run

tetris --ascii-only         # uses [] as preview cell
# or
tetris --preview-chars 'XX' # uses custom characters as preview cell

If you want to skip the level prompt, you can start the game immediately via

tetris --level n

Lastly, to see the current high score, you can run tetris --high-score. And of course, see tetris --help for help.

tips

troubleshooting

People seem to have varying levels of success with the linux binary. Please note that it is compiled dynamically and hence should not be expected to work on most distros. If you have other problems, feel free to open an issue.

roll your own

If you like games in your terminal and have an interest in functional programming, write your own! This code is built on top of brick which makes building terminal user interfaces very accessible. I also have a tutorial that can help you get started.

评论

暂无评论