Skip Navigation

User banner
Posts
110
Comments
279
Joined
2 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.

  • Showerthoughts @lemmy.world

    Going in and coming out

    Jimny

    Jump
  • South Africa.

  • pics @lemmy.world

    Bushbuck

    pics @lemmy.world

    Jimny

    pics @lemmy.world

    Bushbuck ewe

  • Where does my data go? On my HD or somewhere in the cloud?

  • pics @lemmy.world

    Roadblock

  • Sure, but they are very docile. It’s the zebra you have to watch out for. They do this little surprise sideways kick that will put you in hospital.

    Here are some of them stealing pellets from the impala.

  • They’re around the house all the time. Very used to people, and we are quite used to them. Gotta chase them sometimes when they come close, they break branches off the trees and drop thorny twigs all over the place.

  • I like it.

  • pics @lemmy.world

    My wife found some giraffes in the road.

  • Marloth. 👍🏻

  • Yep, the “only” is mostly for the overseas tourists.

  • pics @lemmy.world

    Random photo of the day

  • 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.

  • pics @lemmy.world

    Random shot of the day.

  • DDG it to get a file, else it is quite simple to generate and customize your own. I do it a bit different from the “official” way, but whatever works, very flexible.

  • I have been using calendar.txt for about 2 years now. Works fine and easy to sync.

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

  • You’re in the jungle baby!

  • pics @lemmy.world

    Nyala

    pics @lemmy.world

    We killed a T-Rex today.

    pics @lemmy.world

    Beware.

    Funny @sh.itjust.works

    Poes.

    Videos @lemmy.world

    Slow motion arrows hitting all kinds of interesting things.

    Videos @lemmy.world

    The Telescope Images Scientists Have Been Waiting 12 Years For (Euclid)

    pics @lemmy.world

    Face

    pics @lemmy.world

    Spider

    pics @lemmy.world

    Couple of asses.

    cats @lemmy.world

    cat

    pics @lemmy.world

    Rusty

    pics @lemmy.world

    a quaint little footpath to the front door