在Ubuntu终端中运行俄罗斯方块
一、下载源码
https://github.com/taylorconor/tinytetris
二、下载Curses库
参考:Linux下的Curses库的源码下载与安装
三、进入文件夹编译文件
在tinytetris文件夹中打开终端,输入命令:
`g++ -o tinytetris-commented tinytetris-commented.cpp -lncurses`
就生成了tinytetris-commented可执行文件
继续在终端中运行:
./tinytetris-commented
即可生成,运行界面如下: