Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83 based; site hounx.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!hounx!juda From: juda@hounx.UUCP (#J.KAMINETSKY) Newsgroups: net.games Subject: battleships conversion to bsd 4.2 Message-ID: <355@hounx.UUCP> Date: Mon, 24-Jun-85 11:17:39 EDT Article-I.D.: hounx.355 Posted: Mon Jun 24 11:17:39 1985 Date-Received: Tue, 25-Jun-85 07:56:41 EDT Distribution: net.sources Organization: AT&T Bell Labs, Holmdel NJ Lines: 18 To: pertec!trwrb!decvax!harpo!whuxlm!whuxl!houxm!hounx!juda In-Reply-To: your article <353@hounx.UUCP> I have converted battleship to 4.2BSD. Four #defines solve the incompatibility problems: #define wattron(w,a) wstandout(w) #define wattroff(w,a) wstandend(w) #define cbreak() crmode() #define flash() putchar('\007') I used #defines instead of editing your code since 4.3BSD might support the 5.2 curses functions and I wanted to highlight the changes. This took maybe 5 minutes to figure out. I think a lot of people out there should try to use their grey matter a bit more.