rain and worm, with colors, from ncurses-examples

preview_player
Показать описание
I have actually covered rain and worm [1] via [2]) before, theses from ncurses-examples-20110404 are with colors and some modifications and updates.

It seems those codes, I got before, for making the videos, are different forks from bsd-games. Anyway, this video is just an update and for being part of ncurses-example series. Because so, I'm not going into the detail or command-line options, just quickly show the *colors* as they are what I noticed the differences.

##$

* ncurses-examples 20110404
* In C with ncurses (of course)
* Thomas E. Dickey, et al.
* MIT License

**$ rain.c

Color, controls are:

[q] quit
[s] pause
[space] resume

Previously made video is from bsd-games version on 2014-04-26 [3].

* $Id: rain.c,v 1.38 2010/11/13 20:11:46 tom Exp $
/* rain 11/3/1980 EPS/CITHEP */
* napms(50) changed to napms(250) for recording

**$ worm.c

Colors, [any key] to quit.

Previously made video is from bsd-games version on 2014-04-27 [4], which has different name as "worms" (with an 's').

I noticed this ncurses-example version has a note by Eric Raymond: July 1995 (esr): "worms is now in living color! :-)"

Also notice this code was made in 1980 by Eric Scott.

* $Id: worm.c,v 1.60 2010/11/13 20:21:21 tom Exp $
* By Eric P. Scott and Eric S. Raymond
* napms(10) changed to napms(250) for recording

##$

What if it rains worms?
Рекомендации по теме
welcome to shbcf.ru