Random maze generator ;-)

페이지 1/2
| 2

By Manuel

Ascended (15839)

Manuel의 아바타

23-08-2019, 00:29

10 SCREEN 1:KEY OFF:Z=RND(-TIME)
20 IF RND(1)>.5 THEN C=203 ELSE C=204
30 PRINTCHR$(C);
40 GOTO 20
Login or 등록 to post comments

By Grauw

Ascended (8516)

Grauw의 아바타

23-08-2019, 01:28

Let me just copy/paste (Cmd+V) that into the latest openMSX build… Wink

Looks nice! But use a European MSX Smile.

By ToriHino

Champion (385)

ToriHino의 아바타

23-08-2019, 07:32

Also the favorite test program from this guy :)

By Manuel

Ascended (15839)

Manuel의 아바타

23-08-2019, 07:39

Grauw: I used copy to clipboard to be able to paste it here!

By hamlet

Scribe (2655)

hamlet의 아바타

23-08-2019, 08:55

I'm sure ya all know the
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
maze. It's Commodore BASIC code, but portable to the MSX (I used 254.5 on an european machine).
Here is a nice book about.

By Manuel

Ascended (15839)

Manuel의 아바타

23-08-2019, 23:49

Sure, if you want it shorter:

10 SCREEN 1:KEY OFF:Z=RND(-TIME)
20 PRINTCHR$(203.5+RND(1));:GOTO20

(Although it's longer, I find line 10 worth it.)

By Louthrax

Prophet (2093)

Louthrax의 아바타

24-08-2019, 08:06

hamlet wrote:

I'm sure ya all know the
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
maze. It's Commodore BASIC code, but portable to the MSX (I used 254.5 on an european machine).
Here is a nice book about.

OMG, the book is 309 pages, talking only about that 1 line of code :RNFF: Never heard about that one, but it's just hilarious !

By Manuel

Ascended (15839)

Manuel의 아바타

24-08-2019, 09:18

I honestly didn't know this trick was so popular, I had never seen it! Well, I guess GMTA....

By Louthrax

Prophet (2093)

Louthrax의 아바타

24-08-2019, 09:20

And the book mentionned above is indeed interesting to read Smile

By NYYRIKKI

Enlighted (5402)

NYYRIKKI의 아바타

24-08-2019, 10:52

Manuel wrote:

I honestly didn't know this trick was so popular, I had never seen it! Well, I guess GMTA....

Naah... It is just your memory that is failing... Look at your comments here:
https://www.msx.org/news/challenges/en/mrc-tenliner-challenge

... but don't worry... I've done this same mistake: :)
https://msx.org/forum/msx-talk/general-discussion/old-maze-g...

By Manuel

Ascended (15839)

Manuel의 아바타

24-08-2019, 11:11

Geez, I must be getting old... Crazy

페이지 1/2
| 2