In Hangman, the creator has this formula:
If (N>40 and N<94) and N≠44 and N≠45 and L<16
Then
Str0+sub("ABC DEFGHIJKLMNOPQRSTUVWXYZ",N-5iPart(.1N+4),1→Str0
real(7,9,8L,29+20M,2,8,35
L+1→L
End
which is for letters.
I need one for numbers. I'm not good with complicated math so if anyone could take the time to make one for numbers, I'd really appreciate it.
Here, have some common routines
Code: Repeat Ans>71 and min(Ans≠{75,81,85,91,95
getKey
End
sub("789 456 123 0.",Ans-36-5int(.1Ans),1
or
Code: Repeat Ans≤9
Repeat Ans
getKey
End
Ans(102≠Ans)-13int(Ans/13(2>abs(5-abs(5-abs(Ans-83
End
These types of routines have all been written a zillion times, these versions are from tibasicdev. Here is the link to the page that explains how they work, its relatively straightforward.
mr womp womp wrote:
Here, have some common routines
Code: Repeat Ans>71 and min(Ans≠{75,81,85,91,95
getKey
End
sub("789 456 123 0.",Ans-36-5int(.1Ans),1
or
Code: Repeat Ans≤9
Repeat Ans
getKey
End
Ans(102≠Ans)-13int(Ans/13(2>abs(5-abs(5-abs(Ans-83
End
These types of routines have all been written a zillion times, these versions are from tibasicdev. Here is the link to the page that explains how they work, its relatively straightforward.
Thank you! =D
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum