mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
翻译完成 by intermerlin
This commit is contained in:
parent
f85679f1a3
commit
f5d2b07bc3
@ -1,41 +0,0 @@
|
||||
(translating by intermerlin)
|
||||
|
||||
nSnake: Play The Classic Snake Game In Linux Terminal
|
||||
================================================================================
|
||||
You know what was the best thing about old Nokia handsets back in early 2000′s? The [Snake Game][1]. I had wasted considerable time on this silly yet addictive game. While the good old Nokia phones are replaced by smartphones today and Snake game is replaced by other silly addictive games such as [Temple Run][2] etc Snake still has its own charm.
|
||||
|
||||
There are several Snake games available on Android, iOS and Web. And one such game is available in Linux terminal as well. Yes, you heard it right, Linux Terminal it is.
|
||||
|
||||
### nSnake: Classic Snake game in Linux Terminal ###
|
||||
|
||||
[nSnake][3] is the Linux terminal version of the classic game developed with ncurses by [Alexandre Dantas][4]. It is available for almost all Linux distributions but in this article we shall see how to install nSnake in Ubuntu and other similar distributions.
|
||||
|
||||
To install nSnake in Ubuntu and Linux Mint, open a terminal and use the following command:
|
||||
|
||||
sudo apt-get install nsnake
|
||||
|
||||
Once installed, you can use the following command to run the program:
|
||||
|
||||
nsnake
|
||||
|
||||
It will start the game in terminal which may look like the following screen. If you winder why my Ubuntu Terminal looks different than the usual purple one, I am using Numix theme which is one of the [best themes for Ubuntu][5].
|
||||
|
||||
![Play Snake game in Linux terminal with nSnake](http://itsfoss.com/wp-content/uploads/2014/03/nSnake_Linux_terminal_game.jpeg)
|
||||
|
||||
Playing nSnake is very easy. You can choose the speed of the game as well as whether to keep the borders or not from the start screen. Snake can be controlled using the arrow keys while you can use P to pause the game and Q to quit the game.
|
||||
|
||||
What you think of nSnake? Have you ever tried it before? What other terminal game you play? Do let share your views.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/nsnake-play-classic-snake-game-linux-terminal/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://en.wikipedia.org/wiki/Snake_(video_game)
|
||||
[2]:http://en.wikipedia.org/wiki/Temple_Run
|
||||
[3]:http://alexdantas.net/projects/nsnake/
|
||||
[4]:http://alexdantas.net/
|
||||
[5]:http://itsfoss.com/best-themes-ubuntu-1310/
|
@ -0,0 +1,39 @@
|
||||
nSnake: 在Linux的终端上玩经典的贪食蛇游戏
|
||||
================================================================================
|
||||
你知道20世纪末的那些古老的诺基亚手机上最棒的东西是什么吗? [贪食蛇][1] 我以前在这个看似无聊但却让人上瘾的游戏上花费了大把的时间。在古老的诺基亚手机被智能手机取代的同时,贪食蛇也被另外的无聊但却令人上瘾的游戏取代了,比如说:[神庙逃亡][2]。但是,贪食蛇本身的魅力仍在。
|
||||
|
||||
在Android,iOS以及Web上有很多可以玩的贪食蛇游戏。另外,在Linux终端上也有类似的游戏。对,你没有听错,Linux终端上真的有。
|
||||
|
||||
### nSnake: Linux终端上的经典贪食蛇游戏 ###
|
||||
|
||||
[nSnake][3] 是[Alexandre Dantas][4]开发的经典游戏——贪食蛇的Linux终端版本。差不多在所有的Linux发行版中,你都可以获取nSnake,但是在这篇文章中我们只介绍如何在Ubuntu以及与Ubuntu相似的发行版中安装它。
|
||||
|
||||
要在Ubuntu或者Linux Mint中安装nSnake, 你只需要打开终端,然后使用下面的命令:
|
||||
|
||||
sudo apt-get install nsnake
|
||||
|
||||
一旦安装成功,你就可以使用下面的命令来运行游戏了:
|
||||
|
||||
nsnake
|
||||
|
||||
在终端中运行起来的nSnake就类似于下面截图中的内容。如果你很纠结,为什么我的Ubuntu终端和Ubuntu默认的紫红色终端不一样呢?那是因为我用了Numix主题。[更多优秀的Ubuntu主题][5]
|
||||
|
||||
![Play Snake game in Linux terminal with nSnake](http://itsfoss.com/wp-content/uploads/2014/03/nSnake_Linux_terminal_game.jpeg)
|
||||
|
||||
玩nSnake是非常简单的。你可以从开始界面选择游戏速度以及是否开启边框。游戏开始后,使用方向键控制贪吃的小蛇蛇,P键暂停游戏,Q键退出游戏。
|
||||
|
||||
你觉得nSnake怎么样? 你以前玩过吗? 你还玩过其他的Linux终端游戏吗? 来跟我们分享一下吧!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://itsfoss.com/nsnake-play-classic-snake-game-linux-terminal/
|
||||
|
||||
译者:[intermerlin](https://github.com/intermerlin) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://en.wikipedia.org/wiki/Snake_(video_game)
|
||||
[2]:http://en.wikipedia.org/wiki/Temple_Run
|
||||
[3]:http://alexdantas.net/projects/nsnake/
|
||||
[4]:http://alexdantas.net/
|
||||
[5]:http://itsfoss.com/best-themes-ubuntu-1310/
|
Loading…
Reference in New Issue
Block a user