POV-Ray : Newsgroups : povray.off-topic : Best one-liner ever Server Time
31 Oct 2024 16:17:46 EDT (-0400)
  Best one-liner ever (Message 1 to 3 of 3)  
From: scott
Subject: Best one-liner ever
Date: 9 Jul 2013 11:15:00
Message: <51dc28f4$1@news.povray.org>
Tetris in BBC BASIC:

0d=d:IFdVDUd:a=POINT(32*POS,31-VPOS<<5):RETURNELSEMODE9:GCOL-9:CLG:O
FF:d=9:REPEATVDU30:REPEATGOSUBFALSE:IFPOS=28VDUPOS,15,VPOS,24;11,26:IF0E
LSEIFa=0PRINT:UNTIL0ELSEUNTILVPOS=25:v=ABSRNDMOD7:i=0:VDU4895;3:REPEATm=
9-INKEY6MOD3:FORr=TRUETO1:t=rANDSGNt:IFt=rCOLOURv-15:VDUrEORm:i+=m=7AND9
-6*r:IF0ELSEFORn=0TO11:d=n/3OR2EORd:GOSUBFALSE:IF1<<(n+i)MOD12AND975AND&
C2590EC/8^vVDU2080*ABSr;:t+=a:IF0ELSENEXT,:VDU20:UNTILt*LOGm:UNTILVPOS=3

http://survex.com/~olly/rheolism/dsm_rheolism/

As I read the "features" I thought it absolutely *must* be a joke, how 
on earth could all that functionality be in the code above. But with a 
huge number of clever tricks it works, I especially like the method of 
encoding all the shapes into a single hex constant and the method for 
rotating them.

(Long) explanation here:

http://survex.com/~olly/rheolism/dsm_rheolism/explanation.html


Post a reply to this message

From: nemesis
Subject: Re: Best one-liner ever
Date: 10 Jul 2013 01:05:05
Message: <web.51dceb17927e7f6460835f550@news.povray.org>
scott <sco### [at] scottcom> wrote:
> Tetris in BBC BASIC:
>
> 0d=d:IFdVDUd:a=POINT(32*POS,31-VPOS<<5):RETURNELSEMODE9:GCOL-9:CLG:O
> FF:d=9:REPEATVDU30:REPEATGOSUBFALSE:IFPOS=28VDUPOS,15,VPOS,24;11,26:IF0E
> LSEIFa=0PRINT:UNTIL0ELSEUNTILVPOS=25:v=ABSRNDMOD7:i=0:VDU4895;3:REPEATm=
> 9-INKEY6MOD3:FORr=TRUETO1:t=rANDSGNt:IFt=rCOLOURv-15:VDUrEORm:i+=m=7AND9
> -6*r:IF0ELSEFORn=0TO11:d=n/3OR2EORd:GOSUBFALSE:IF1<<(n+i)MOD12AND975AND&
> C2590EC/8^vVDU2080*ABSr;:t+=a:IF0ELSENEXT,:VDU20:UNTILt*LOGm:UNTILVPOS=3
>
> http://survex.com/~olly/rheolism/dsm_rheolism/
>
> As I read the "features" I thought it absolutely *must* be a joke, how
> on earth could all that functionality be in the code above. But with a
> huge number of clever tricks it works, I especially like the method of
> encoding all the shapes into a single hex constant and the method for
> rotating them.
>
> (Long) explanation here:
>
> http://survex.com/~olly/rheolism/dsm_rheolism/explanation.html

nice  find, dude


Post a reply to this message

From: Orchid Win7 v1
Subject: Re: Best one-liner ever
Date: 10 Jul 2013 03:29:42
Message: <51dd0d66$1@news.povray.org>
On 09/07/2013 04:15 PM, scott wrote:
> As I read the "features" I thought it absolutely *must* be a joke, how
> on earth could all that functionality be in the code above. But with a
> huge number of clever tricks it works, I especially like the method of
> encoding all the shapes into a single hex constant and the method for
> rotating them.

That's fairly crazy. For some reason I'm reminded of this:

http://bash.org/?464385


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.