Skip Navigation

Posts
19
Comments
110
Joined
3 yr. ago

  • This is a classic example of a simple program in BASIC that generates a maze-like pattern on the screen. Let's break it down:

    • 10 PRINT CHR$ (205.5 + RND (1)): This line prints a character to the screen. CHR$ is a function that converts a numeric value to a character. 205.5 + RND (1) generates a random number between 205.5 and 206.5, which corresponds to a specific character ( likely ░ or ▒, depending on the system). The RND (1) function generates a random number between 0 and 1.
    • 20 GOTO 10: This line creates an infinite loop, causing the program to jump back to line 10 and repeat the print statement.

    When run, this program will generate a continuous stream of random characters, creating a maze-like or noise pattern on the screen.

    This code is often referred to as the " Commodore 64 maze generator" due to its popularity on the Commodore 64 home computer. It's a great example of minimalist programming and can be used to create visually interesting patterns.

  • How to introduce testicular torsion in adult penguin males.

  • Bring Your Drink.

  • is lemmy as a platform particularly focused on lgbtq+ Yes, in my experience. Which is fine, but as you said finding interesting communities (that are active) is a bit of a challenge.

    For me it is the American News that is overwhelming and hard to filter out completely without filtering out everything.

    PS: Voyager has some excellent filter settings.

  • Diesel

  • Have you seen an african bull elephant in musth? Fucking terrifying.

  • Lick

  • It’s a good song (Jump) but I am really sick of it.

  • You’re in the jungle baby!

  • Jump by Van Halen

  • Bacon

  • Humans are not slugs.

  • Cool!

  • Dwarf Fortress with a different name?

  • Ok.

  • Exactly this.

  • A heart attack.

  • No