未加星标

Snake your way across your Linux terminal

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二03 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

Snake your way across your Linux terminal

Image credits :

Jason Baker

x

Get the newsletter

Join the 85,000 open source advocates who receive our giveaway alerts and article roundups.

The linux Terminal

Top 7 terminal emulators for Linux 10 command-line tools for data analysis in Linux Download Now: SSH cheat sheet Advanced Linux commands cheat sheet

We've been on a roll with games over the weekend, and it was fun, so let's look at one more game today, Snake!

Snake is an oldie but goodie; versions of it have been around seemingly forever. The first version I remember playing was one called Nibbles that came packaged with QBasic in the 1990s, and was probably pretty important to my understanding of what a programming language even was. Here I had the source code to a game that I could modify and just see what happens, and maybe learn something about what all of those funny little words that made up a programming language were all about.

Today's Snake is written in Go, and while it's simple, it's just as much fun as the original. Like most simple old games, there are a ton of versions to choose from. In Snake's case, there's even a version in the classic bsdgames package that's almost certainly packaged for your distribution.

But what I like about this version of Snake is that it's packaged for Docker so I can easily run it in one line from my terminal without worrying about anything disto-specific. That, and it makes use of 15 randomized food emojis for the snake to eat. I'm a sucker for food emojis. Anyway, give it a try using:

$ docker run -ti dyego/snake-game

This Snake is licensed as open source under an MIT license, and you can check out the source code on GitHub .

animated_snake_game
Snake your way across your Linux terminal

Do you have a favorite command-line toy that you think I ought to profile? The calendar for this series is mostly filled out but I've got a few spots left. Let me know in the comments below, and I'll check it out. If there's space, I'll try to include it. If not, but I get some good submissions, I'll do a round-up of honorable mentions at the end.

Check out yesterday's toy, Powers of two, powers of Linux: 2048 at the command line , and check back tomorrow for another!


Snake your way across your Linux terminal

Powers of two, powers of Linux: 2048 at the command line

Looking for a terminal-based game to pass the time? Look no further than 2048-cli.

Topics

Command line

Linux

About the author
Snake your way across your Linux terminal
Jason Baker

Iuse technology to make the world more open.Linux desktop enthusiast. Map/geospatial nerd. Raspberry Pi tinkerer. Data analysis and visualization geek. Occasional coder. Cloud nativist. Civic tech and open government booster.

More about me

Learn how you can contribute

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

代码区博客精选文章
分页:12
转载请注明
本文标题:Snake your way across your Linux terminal
本站链接:https://www.codesec.net/view/621266.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(39)