Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: ISSOtm on November 10, 2014, 09:07:11 am

Title: Friday, 13th...
Post by: ISSOtm on November 10, 2014, 09:07:11 am
Hello guys, yesterday I was asked a very important question : "When will the next Friday, 13th be ? How many times will it occur next year ?"
I didn't know the answer, I didn't have any calendar near me, but I had my calculator...

So, there it is, FRIDAY 13 FINDER !
How it works :
And that's pretty much everything about it !

One known bug : when editing a value on the date screen, the display isn't updated, but internally it is.

Features to implement soon :
Files coming tomorrow !
Title: Re: Friday, 13th...
Post by: Sorunome on November 10, 2014, 09:08:08 am
Haha, sounds like a funny little fun idea ^.^
/me wonders if you take like leap years into account
Title: Re: Friday, 13th...
Post by: aeTIos on November 10, 2014, 09:41:48 am
Nice and fun utility :D. I tried writing something like this once, but got stuck and forgot about it. Good to see you actually finished this :P
Title: Re: Friday, 13th...
Post by: ClrDraw on November 10, 2014, 11:26:11 am
Hah I like this idea! Makes me think of this meme:
Title: Re: Friday, 13th...
Post by: ISSOtm on November 10, 2014, 01:07:10 pm
Haha, sounds like a funny little fun idea ^.^
/me wonders if you take like leap years into account

Yes, they are taken into account. Both rules are respected :
Quote from: Wikipedia
Leap years are years that can :
  • either be divided by 4 but not by 100 ;
  • either be divided by 400.

It doesn't have a super graphical interface, but it is 1970 bytes large :P


Hah I like this idea! Makes me think of this meme:
<AD>
Wanna avoid this kind of dumb situation ?
Don't worry ! We have the perfect tool for you.
FRIDAY 13th FINDER ! Serial killer's best friend.

For two bought, one chainsaw is offered ! Limited offer !
</THIS AD WAS PRODUCED BY ISSO Corp.>
Title: Re: Friday, 13th...
Post by: Omegaxis213 on November 10, 2014, 07:46:36 pm
The next Friday the 13 is on Feburary 13 which is my birthday suprisingly... :O
Title: Re: Friday, 13th...
Post by: DJ Omnimaga on November 11, 2014, 02:31:25 am
Lol actually as simple as it might be, this program is a very fun idea. It might be handy sometimes for me when I want to figure out how many days left I have before some satanic entity turns me into a lobster. ;D
Title: Re: Friday, 13th...
Post by: Sorunome on November 11, 2014, 07:40:07 am
Haha, sounds like a funny little fun idea ^.^
/me wonders if you take like leap years into account

Yes, they are taken into account. Both rules are respected :
[...]
What about those random day skippings in the past if you look at some occurances in the 19th/20th century :trollface:
Title: Re: Friday, 13th...
Post by: Streetwalrus on November 11, 2014, 04:12:42 pm
Lol nice one.

Also does this use the clock functions on the 84+ ? There's a day of week function built in.
Title: Re: Friday, 13th...
Post by: ISSOtm on November 12, 2014, 10:19:15 am
Haha, sounds like a funny little fun idea ^.^
/me wonders if you take like leap years into account

Yes, they are taken into account. Both rules are respected :
[...]
What about those random day skippings in the past if you look at some occurances in the 19th/20th century :trollface:
No, it is only meant to be used in the 21th century, because calculators did not exist past that point (unless, it is what I think) :P

Lol nice one.

Also does this use the clock functions on the 84+ ? There's a day of week function built in.
No, because it uses assembly, I didn't use this function.
Maybe it is possible, but it currently is quite fast (about half a second to scan a whole month), and I don't think using this feature will speed up the program :/

But, you gave me an idea :
When the calculator implements these time functions, the day isn't asked to.
Will require two programs, though.

NOTICE : I am currently working on a mini-RPG engine for my PUZZLE MASTER program, so this program is in limbo, but shall be back soon !
Title: Re: Friday, 13th...
Post by: Streetwalrus on November 12, 2014, 02:27:55 pm
Oh lol I didn't pay attention, I thought it was TI-BASIC. :P
Title: Re: Friday, 13th...
Post by: ISSOtm on November 13, 2014, 02:02:20 pm
Finally debugged and translated the program, yay !
Files downloadable down here \/

BONUS : If you are French, there is a french version available here (https://www.dropbox.com/sh/1nx6olxlrvbleaw/AADOLTyqPgY7-1_3uBU4Iq4xa?dl=0).