r/loadingicon • • Feb 21 '20

Coded this on my calculator

2.0k Upvotes

40 comments sorted by

135

u/WakeAndVape Feb 21 '20

It's oddly frustrating because I want it to fill up the whole block eventually 😭

38

u/courtneygibs Feb 21 '20

The anxiety I felt waiting for this to happen was so real

14

u/Kangalioo Feb 22 '20

I've extended the program to fill up the block after a while, plus a (hopefully) satisfying animation end. Not sure if I should post this on the subreddit too, because it's almost the same thing, so here you go: https://streamable.com/yjo0l

3

u/[deleted] Mar 11 '20

Should have had the same speed from the start but so the dots appeared just slightly faster than at the rate of which they disappear

12

u/Muffinconsumer Feb 21 '20

Thank entropy for that

9

u/electro_nerd Feb 21 '20

So true. It's not impossible, it just has a very very low probability of happening

4

u/CactusOfDooom Feb 22 '20

Very very very low?

2

u/bad-r0bot Feb 21 '20

Feels like Betty starting with her white zone shit again.

10

u/TheSpamwich Feb 21 '20

Hey can you teach me how to code like that? I have a TI-84 CE and I want to code on it.

17

u/Kangalioo Feb 21 '20

The programming language is TI-BASIC. On ticalc.org (go-to website for any TI calculator business) there is a collection of TI-BASIC tutorial links here.

Further, more detailed information about TI-BASIC is on tibasicdev.wikidot.com, a wiki about TI-BASIC programming.

Good luck and have fun!

1

u/[deleted] Feb 22 '20

Lucky! The 84-C is pretty sweet to code on, especially if you’re graphing stuff. I’m over here, a pleb with my normal 84.

I recommend just creating a new program and then scrolling through the available commands you can use, you’re sure to find something fun!

2

u/TheSpamwich Feb 22 '20

I actually only got the calculator to code.

20

u/comradepolarbear Feb 21 '20

Looks like a Conway's Game of Life algorithm but with some adjustments to the rule set,

4

u/PaurAmma Feb 21 '20

That's what my first thought was.

11

u/Maax42_ Feb 21 '20

Very nice dude

4

u/Dope_Nibba Feb 21 '20

What is it

4

u/[deleted] Feb 21 '20

Square

0

u/[deleted] Feb 21 '20

[deleted]

3

u/madeofmold Feb 21 '20

Half wet is half dry! & squares are rectangles so he wasn’t too off the mark.

2

u/[deleted] Feb 21 '20

I’m too smart

4

u/latinsquids Feb 21 '20

Should make a moonenite giving us the finger next.

1

u/[deleted] Feb 21 '20

What school do you go?

2

u/Kangalioo Feb 21 '20

It's some German school

1

u/[deleted] Feb 21 '20

Aight, I guss this calculator is pretty popular in Europe then.

2

u/RegularMixture Feb 21 '20

Awesome! I hate it :)

2

u/[deleted] Feb 22 '20

Coding on TIs used to be one of my favorite pastimes, what a great way to completely ignore class. Dang, I have to go back and finish my tetris program

1

u/LithiumFrenzy81 Feb 22 '20

I wanna lean how to do things to a calculator :(

1

u/TheBlackHoleOfDoom Feb 23 '20

Has it made a swastika yet?

1

u/ilikepizza334 May 10 '20

How the fridge do you code on a calculator

1

u/GrandSensitive Oct 03 '22

No way... It's sus

0

u/[deleted] Feb 21 '20

[deleted]

89

u/MWVaughn Feb 21 '20

I think it's supposed to be like a lava lamp

142

u/Kangalioo Feb 21 '20

You guys ideas about how this works are fascinating :) It's just random tho, so for every step it chooses a random square and toggles its on/off state.

2

u/Cartiernan Feb 21 '20

Mini Game of Life would be sweet and mostly if statements.

1

u/Kangalioo Feb 22 '20

I did Game Of Life already a few months ago. It's agonizingly slow though, because the calc has to do non-trivial calculations for many cells.

37

u/frostyoni Feb 21 '20

Oh you tease.

12

u/chemicalsatire Feb 21 '20

The correct answer was “damn how’s y’all guess?”

1

u/WAXT0N Feb 22 '20

Could you post your code?

I'm curious how you managed to shade in the square area in such a short time

1

u/Kangalioo Feb 22 '20 edited Feb 22 '20

It's just a bunch of lines, so to fill a square, something like

For(A,1,5)
Line(1,A,5,A)
End

For erasing a square, you can do the same, but add a fifth parameter to the Line command with value zero. That will switch Line command behavior to erase.

I haven't posted the full code because I would have to get my cable and stuff to transfer the program from my calc. If you really want it though, I can send you the program file. Just tell me :)

1

u/WAXT0N Feb 22 '20

Ohh ok that's what I thought you did, but I'm just used to doing it with much larger areas where it takes a lot more time