Code I made when I was bored

Talk about programming on calculators! Give advice, give snippets of code, or learn how to program on calculators!
Post Reply
Floofyboy
Cool Member
Posts: 25
Joined: Fri Nov 07, 2025 8:15 am

Code I made when I was bored

Post by Floofyboy »

This code generates random coordinates and a random number from 1 to 9 then pastes it in a random location on the home screen, eventually filling almost the entire thing. The only way to stop is to hit ON. This only works on a TI-83+ or with a calculator that has the same screen size.

Code: Select all

PROGRAM: EYYYY
:ClrHome
:While 1
:randInt(1,8)->A
:randInt(1,16)->B
:randInt(1,9)->C
:Output(A,B,C)
:End
User avatar
Sumde
Site Admin
Posts: 72
Joined: Thu Oct 02, 2025 8:04 pm
Location: Canada
Contact:

Re: Code I made when I was bored

Post by Sumde »

Nice! It would be nice for the program to detect placements that have not been taken, and place them only in the untaken spots but ehh, it's basic after all. :)
Image
NovemberXmas
Site Admin
Posts: 49
Joined: Fri Oct 03, 2025 7:05 pm

Re: Code I made when I was bored

Post by NovemberXmas »

Ah lovely, I hope you had fun coding!
User avatar
Sumde
Site Admin
Posts: 72
Joined: Thu Oct 02, 2025 8:04 pm
Location: Canada
Contact:

Re: Code I made when I was bored

Post by Sumde »

To add to this, I also made a CE version (with colour, and assuming zoom is standard). :D

Code: Select all

:ClrDraw
:While 1
:randInt(0,9)->A
:randInt(1,31)->B
:randInt(1,9)->C
:randInt(10,24)->D
:TextColor(D)
:Text(A*16,B*8,C)
:End
Image
Post Reply