Another (but completely different) snake game

Curtis Jackson rcj at burl.UUCP
Tue Feb 4 13:29:09 AEST 1986


In article <219 at hoqam.UUCP> vedm at hoqam.UUCP (BEATTIE) writes:
>Does anyone know how to get snake2 to work under system V.2.
>I would also like to use it on my unixpc.
>Problems I ran into:
>
>1. No real quick_sleep - maybe a for loop could accomplish this??
>2. getkey.c needs FIONREAD (ioctl)
>
I have a solution to (1), since snake2 only uses a quarter-second
timeout (thanks to Robert Toxen's tick* routines); but NOTE THAT IT
IS A BUSY WAIT, NOT A TRUE IDLE WAIT.  IT WILL PROBABLY KILL YOUR
CPU.

As for (2), I can fix that one, too.

I am going to have to fly to Minneapolis tomorrow to give a 2-day
class on a language I wrote, so I won't be able to touch this until
at least Friday.  If I get snake2 working for SVR2, I'll post the
source (with #ifdef SYS5 for the new stuff) to net.sources.
-- 

The MAD Programmer -- 919-228-3313 (Cornet 291)
alias: Curtis Jackson	...![ ihnp4 ulysses cbosgd mgnetp ]!burl!rcj
			...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj



More information about the Comp.sources.bugs mailing list