基于linux的贪吃蛇游戏设计_献给Linux爱好者12个牛叉的基于终端的游戏

6f634ba706c3344e4ecc7cf31a3245e6.png

当你成为了一个linux超级用户,你肯定会使用命令行,因为命令行让你能够更好的控制linux系统。

因此当你作为一个控制台管理员或者是一个喜欢从终端控制linux的用户,你将会在终端中花费相当长的时间,这可不是一件有趣的事情。甚至可以说是相当无聊的。然而,当你知道如何玩基于终端的游戏,你的工作将会变得有趣起来了(一篇赤裸裸的教你如何磨洋工的文章么。。。)

f6b94cfc73cb41ab06a44e2facd5bcee.png

12 Linux Terminal or Console Based Games

在Linux下有无数的基于终端的游戏,我们这里介绍几个最有趣的,当然这是一个基本上不可能列完的表

1. Nudoku

Nudoku是一个基于终端的数独游戏,额。。。就是数独大家都懂的

7901848bc3aba7cec0c33a1cb1af03e3.png

Nudoku Console Game for Linux

To install Nudoku on Linux, run:

# yum install nudoku [On RedHat based systemes] # dnf install nudoku [On Fedora 23+ versions] $ sudo apt-get install nudoku [On Debian based systems]

Visit Homepage: https://github.com/jubalh/nudoku

2. 2048-cli

2048。。。这个游戏大家也懂的,就是同样的数块可以互相消除,这还是个跨平台的游戏

34af151fae742e60693893f80212e700.png

2048 Game for Linux

To install 2048 Game on CentOS, RHEL, Scientific Linux and Fedora, run:

# yum install 2048-cli-nocurses # dnf install 2048-cli-nocurses [On Fedora 23+ versions]

On an Ubuntu/Debian system, you can install 2048 Game via:

$ sudo apt-get install libncurses5-dev $ sudo apt-get install libsdl2-dev libsdl2-ttf-dev $ sudo apt-get install 2048-cli

Visit Homepage: https://github.com/tiehuis/2048-cli

3. MyMan

吃豆人。。。这个估计也不用介绍了

a7f688ff3ddf865f4273f03cb9b9f271.png

Myman Game for Linux

Visit Homepage: http://myman.sourceforge.net/

4. Greed

Greed是一个类似吃豆人的游戏,但是它提供了彩色界面(要是被撞见了你可以对领导说这是程序出了错误。。。)

450136b4ddfc88ba868054097420d5e6.png

Greed Game for Linux

玩家可以使用方向键移动以吃掉数字,只有与步数一致的数字可以在下一步被吃掉(这倒是个蛮稀奇的游戏,以前从来没玩过)

You can install it on Debian/Ubuntu/Linux Mint systems as follows:

$ sudo apt-get install greed

Visit Homepage: http://www.catb.org/~esr/greed/

5. Pacm4conesole

又是一个吃豆人游戏。。。作者你是多爱吃豆人。。。

f4d273c71d0d3d8cf2ba60c654c202a7.png

Pacman4console Game for Linux

You can install Pacm4conesole game on Linux, using:

# yum install pacman4console # dnf install pacman4console $ sudo apt-get install pacman4console

Visit Homepage: https://sites.google.com/site/doctormike/pacman.html

6. Moon Buggy

Moon Buggy是一个免费的单向字符游戏。玩家控制一台汽车在月球表面(你说是在火星我也相信呢)。你只需要使用跳来避开地上的豁口(好吧我想不出更好的词了)以赢得更高的分数

fd56d790d29eeb0063c8e58becc9738d.gif

# yum install moon-buggy # dnf install moon-buggy $ sudo apt-get install moon-buggy

Visit Homepage: https://github.com/seehuhn/moon-buggy

7. Robot Finds Kitten

机器人找小猫,机器人(你说这是火影忍者我也信呢!)需要查找附近的物体来找到小猫,一个简短的信息被写在上方辅助你寻找(有点难以想象这个游戏怎么玩。。。下下来试试看)

ff0115036ae87c02d7f7fbbdf7d49f1f.png

Robotfindskitten Game

Visit Homepage: http://robotfindskitten.org/

8. nInvaders

就是我们小时候玩的小蜜蜂

f7fcf57ffa3bca3dca8ddb14cae4445b.gif

To install nInvaders Game on Linux, run:

# yum install ninvaders # dnf install ninvaders $ sudo apt-get install ninvaders

Visit Homepage: http://ninvaders.sourceforge.net/

9. Zangband

Zangband是一个免费的跨平台的冒险游戏,它是一个roguelike游戏。它的官网详细讲述了游戏的细节

6a8290c22c5d539176c844ec64336c47.png

Zangband Game

To install Zangband Game on Linux, run:

# yum install zangband # dnf install zangband $ sudo apt-get install zangband

Visit Homepage: http://www.zangband.org/

10. Nethack

大名鼎鼎的Nethack,如果一辈子只做一件事,那就是玩nethack吧

不过看完了前面几个游戏。。。我有点怀疑要加一个前提,就是如果这个人一辈子都蹲在一个小房间做服务器管理员的话。。。(三体星人?)

3e3abc95bbb3af1946baa080088ff8be.png

NetHack Game for Linux

To install Nethack Game on Linux, run:

# yum install nethack-console # dnf install nethack-console $ sudo apt-get install nethack-console

Visit Homepage: http://www.nethack.org/

11. Linux Lunar Lander

月球登陆者,这个游戏最有名的不是tenserflow的一个例子么。。。就那个人工智能停月球车的。。。

1d7a86b241ba86c66ee6e81a6e3e39db.png

Linux Lunar Lander

On successful landing, with a small amount of fuel in your LM tanks, this will be a great step for the penguin to live otherwise, it will just become any other crater in the lunar soil.

12. Secret Adventure

神秘冒险,一个纯文字冒险游戏,通过命令行来控制下一个决定,看起来很有趣

$ emacs -batch -l dunnet

423b688c0fb42274d414d78e3eef514a.png

Secret Adventure Game

如果有兴趣,可以看看20个有趣的命令行Linux游戏

Don’t Miss: 20 Funny Commands of Linux or Linux is Fun in Terminal

------------------------------------------------

12 Amazing Terminal Based Games for Linux Enthusiasts

如何在老板眼皮底下玩游戏的必读文章:献给Linux爱好者12个牛叉的基于终端的游戏

When you are a Linux power user, it is always mandatory to master using the command-line, since using commands to control the system offers a system user more power and control over the Linux system.

Therefore, for System Administrators and also other system users who love to operate from the terminal, this comes along with spending so much time on the terminal, which to many is not so interesting, even considered to be boring. And, just to do away with the terminal boredom, and dive away from the commands a little, you can keep your self entertained with some Linux terminal games, that is if you love playing games.

当你成为了一个linux超级用户,你肯定会使用命令行,因为命令行让你能够更好的控制linux系统。

因此当你作为一个控制台管理员或者是一个喜欢从终端控制linux的用户,你将会在终端中花费相当长的时间,这可不是一件有趣的事情。甚至可以说是相当无聊的。然而,当你知道如何玩基于终端的游戏,你的工作将会变得有趣起来了(一篇赤裸裸的教你如何磨洋工的文章么。。。)

f6b94cfc73cb41ab06a44e2facd5bcee.png

12 Linux Terminal or Console Based Games

There are countless number of terminal based games you can find on Linux and in this article, we shall look at some few of the most interesting ones, although the list is endless.

在Linux下有无数的基于终端的游戏,我们这里介绍几个最有趣的,当然这是一个基本上不可能列完的表

1. Nudoku

Nudoku is a terminal-based Soduku game for Linux. In Noduku, a player is required through logic to fill-up a 9×9 grid with numbers 1 to 9, just as any other game, it has different levels of difficulty from simple to advanced levels.

Nudoku是一个基于终端的数独游戏,额。。。就是数独大家都懂的

7901848bc3aba7cec0c33a1cb1af03e3.png

Nudoku Console Game for Linux

To install Nudoku on Linux, run:

# yum install nudoku [On RedHat based systemes] # dnf install nudoku [On Fedora 23+ versions] $ sudo apt-get install nudoku [On Debian based systems]

Visit Homepage: https://github.com/jubalh/nudoku

2. 2048-cli

2048-cli is a simple yet interesting terminal game, it is a terminal implementation of the popular GUI-based 2048which is based on 1024 and theoretically has properties of Threes, which is a cross-platform, tiny puzzle smart phone game on iOS, Android and Windows phone.

2048。。。这个游戏大家也懂的,就是同样的数块可以互相消除,这还是个跨平台的游戏

34af151fae742e60693893f80212e700.png

2048 Game for Linux

To install 2048 Game on CentOS, RHEL, Scientific Linux and Fedora, run:

# yum install 2048-cli-nocurses # dnf install 2048-cli-nocurses [On Fedora 23+ versions]

On an Ubuntu/Debian system, you can install 2048 Game via:

$ sudo apt-get install libncurses5-dev $ sudo apt-get install libsdl2-dev libsdl2-ttf-dev $ sudo apt-get install 2048-cli

Visit Homepage: https://github.com/tiehuis/2048-cli

3. MyMan

MyMan is another easy-to-play text based game on your Linux terminal. Its development was highly influenced by the Japanese game development company, Namco’s famous Pac-Man game. It can run on several other Unix-like operating systems including FreeBSD, OpenBSD, Solaris and many more.

吃豆人。。。这个估计也不用介绍了

a7f688ff3ddf865f4273f03cb9b9f271.png

Myman Game for Linux

Visit Homepage: http://myman.sourceforge.net/

4. Greed

Greed is a clone of Pac-Man and Tron similar to MyMan above, but it offers colored text interface.

Greed是一个类似吃豆人的游戏,但是它提供了彩色界面(要是被撞见了你可以对领导说这是程序出了错误。。。)

450136b4ddfc88ba868054097420d5e6.png

Greed Game for Linux

A player uses the keyboard arrows to eat as many digits as possible in any direction as he/she moves, the number of digits eaten equals to the number of steps in a particular direction.

玩家可以使用方向键移动以吃掉数字,只有与步数一致的数字可以在下一步被吃掉(这倒是个蛮稀奇的游戏,以前从来没玩过)

You can install it on Debian/Ubuntu/Linux Mint systems as follows:

$ sudo apt-get install greed

Visit Homepage: http://www.catb.org/~esr/greed/

5. Pacm4conesole

Pacman4console is a free terminal clone of the famous Pac-man game, developed by Mike Billars who wanted to play Pac-Man on the console to deal away with having to enable flash on a browser to play Pac-Man.

又是一个吃豆人游戏。。。作者你是多爱吃豆人。。。

f4d273c71d0d3d8cf2ba60c654c202a7.png

Pacman4console Game for Linux

You can install Pacm4conesole game on Linux, using:

# yum install pacman4console # dnf install pacman4console $ sudo apt-get install pacman4console

Visit Homepage: https://sites.google.com/site/doctormike/pacman.html

6. Moon Buggy

Moon Buggy is an free, straightforward character game, in which a player controls a car over craters on th moon’s surface. You are simply required to side slide the car using control keys and jump over the craters to earn more marks.

Moon Buggy是一个免费的单向字符游戏。玩家控制一台汽车在月球表面(你说是在火星我也相信呢)。你只需要使用跳来避开地上的豁口(好吧我想不出更好的词了)以赢得更高的分数

fd56d790d29eeb0063c8e58becc9738d.gif

To install Moon Buggy Game on Linux, run:

# yum install moon-buggy # dnf install moon-buggy $ sudo apt-get install moon-buggy

Visit Homepage: https://github.com/seehuhn/moon-buggy

7. Robot Finds Kitten

Robot Finds Kitten is also another free and interesting Linux terminal game, a player (robot) is required to check around different objects to find a kitten. A short description is displayed for every object that the robot inspects.

机器人找小猫,机器人(你说这是火影忍者我也信呢!)需要查找附近的物体来找到小猫,一个简短的信息被写在上方辅助你寻找(有点难以想象这个游戏怎么玩。。。下下来试试看)

ff0115036ae87c02d7f7fbbdf7d49f1f.png

Robotfindskitten Game

Visit Homepage: http://robotfindskitten.org/

8. nInvaders

nInvaders is a terminal version of popular GUI Space invaders game, here, players have to defend the earth from Space invaders by controlling war ships at the bottom of the screen (earth).

就是我们小时候玩的小蜜蜂

f7fcf57ffa3bca3dca8ddb14cae4445b.gif

To install nInvaders Game on Linux, run:

# yum install ninvaders # dnf install ninvaders $ sudo apt-get install ninvaders

Visit Homepage: http://ninvaders.sourceforge.net/

9. Zangband

Zangband is a free, cross-platform, single player dungeon inspired adventure game. It is derived from Rogue hence the reference, a roguelike game. Instructions of how to play it are written in detail on the homepage.

Zangband是一个免费的跨平台的冒险游戏,它是一个roguelike游戏。它的官网详细讲述了游戏的细节

6a8290c22c5d539176c844ec64336c47.png

Zangband Game

To install Zangband Game on Linux, run:

# yum install zangband # dnf install zangband $ sudo apt-get install zangband

Visit Homepage: http://www.zangband.org/

10. Nethack

Nethack is also a cross-platform dungeons and dragons inspired adventure game, just like Zangband. It has both GUI and text interface, the main concept in Nethack is to discover the detail of a dungeon but not to kill all things in sight, which is the case with other dungeon-like games.

大名鼎鼎的Nethack,如果一辈子只做一件事,那就是玩nethack吧

不过看完了前面几个游戏。。。我有点怀疑要加一个前提,就是如果一个人一辈子都蹲在那里做服务器管理员的话。。。

3e3abc95bbb3af1946baa080088ff8be.png

NetHack Game for Linux

To install Nethack Game on Linux, run:

# yum install nethack-console # dnf install nethack-console $ sudo apt-get install nethack-console

Visit Homepage: http://www.nethack.org/

11. Linux Lunar Lander

Lunar Lander is an exciting terminal game on Linux, here, you required to fly a Lunar Module (LM) to the surface of the moon, where no penguin has ever gone before.

月球登陆者,这个游戏最有名的不是tenserflow的一个例子么。。。就那个人工智能停月球车的。。。

1d7a86b241ba86c66ee6e81a6e3e39db.png

Linux Lunar Lander

On successful landing, with a small amount of fuel in your LM tanks, this will be a great step for the penguin to live otherwise, it will just become any other crater in the lunar soil.

12. Secret Adventure

Secret adventure is a fun-filled, small adventure game that you can play on Linux and Mac OS X terminals. It runs within the Emacs text editor and you can access it from your Linux terminal.

Remember, you must have Emacs text editor installed on your system, then you can launch it by simply issuing the command below and enjoy:

神秘冒险,一个纯文字冒险游戏,通过命令行来控制下一个决定,看起来很有趣

$ emacs -batch -l dunnet

423b688c0fb42274d414d78e3eef514a.png

Secret Adventure Game

Don’t Miss: 20 Funny Commands of Linux or Linux is Fun in Terminal

如果有兴趣,可以看看20个有趣的命令行Linux游戏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值