Path: utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!usc!samsung!noose.ecn.purdue.edu!astra.ecn.purdue.edu!ks From: ks@astra.ecn.purdue.edu (Kirk Smith) Newsgroups: comp.windows.news Subject: Re: Tetris Keywords: Tetris Message-ID: <1990Sep13.130928.6563@ecn.purdue.edu> Date: 13 Sep 90 13:09:28 GMT References: <1498@turner-joy.noarl.navy.mil> <4155@husc6.harvard.edu> Sender: news@ecn.purdue.edu (USENET news) Organization: Purdue University Engineering Computer Network Lines: 39 In article <4155@husc6.harvard.edu> bochner@lange.harvard.EDU (Harry Bochner) writes: >n >In article <1498@turner-joy.noarl.navy.mil>, >beck@turner-joy.noarl.navy.mil (jeff beckleheimer) writes: > > I recently installed OW 2.0 on my SS1+. To my dismay I soon > > discovered that my favorite game Tetris was not included in the > > demos. Is there a way to take the Tetris from OW 1.0.1 and make it > > a standalone program which will run under OW 2.0? > >I saved the OW 1.0 tetris, but it produces the following under OW 2.0: > >Anyone know what's going on? > It would appear that the new NeWS is better about enforcing type checking. Try these diffs: 350c350 < counttomark 2 div { --- > counttomark 2 idiv { 365c365 < counttomark 2 div { --- > counttomark 2 idiv { 601c601 < currenttime dup floor sub 200 mul floor {random pop} repeat --- > currenttime dup floor sub 200 mul floor cvi {random pop} repeat 732c732 < board exch get exch get % xo yo val --- > board exch cvi get exch cvi get % xo yo val 817c817 < board exch get exch curcolor put --- > board exch get exch cvi curcolor put Kirk Smith