Share your best code!

This is the opposite of Share YOUR worst code, instead of worst it’s best.
Post your code that you most proud of!

here’s one of mine’s:

I don’t know what that code does, but just from looking at it I can tell that you’re good with this stuff.

Here’s a fun one, although it’s relatively simple:

One of my best codes is the one I use to draw all the sprites for my Tamagotchi project:
Tamagotchi Gen 2 script pic (4)

Definitions if you want them


To use it, you must have a sprite named “Screen Drawer” and you must have a list of lists, preferably 16 lists of 32 item lists. All items of the sub lists must be a Boolean[1]
You could drag the list of lists into the input slot of the second block, but it is usually more convenient to use a variable. You do not need a variable named “Screen DIsplay”, though that is the default.

Those two blocks work in tandem with blocks that edit lists of lists, such as

Definition of the block above


  1. Well, they can be any other value, though if they are not a Boolean, it will just treat the value as False ↩︎

< + is + true? ((input)) +:: operators> :: control hat if <true> { report <true> } else { if <false> { report <false> }

Hey uhhh… this isn’t that “Useful Blocks” topic

multiplication block for generalized polynomials in my math blocks library

You know it’s the same when you removed the block, and also the code is incorrect it should be this:

{<is true (input):: operators>} :: hat
report (input)

It’s clearly a satirical block

Really, it should use an equals block so that truthy non-boolean values still get reported as booleans.

Here’s some more of mines. This is an encryption block with have another block called “get highest Unicode of text” it’s used for the sifter without breaking the encoder entirely.


useful for game info