Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Roondak

Pages: [1]
1
Lua / Reducing the number of If statements
« on: July 17, 2014, 05:38:35 pm »
So I was programming a function that looked like this:


function name(input)
    if input==1 then
        code
    elseif input==2 then
        code
    elseif input==3 then
        code
    ...
    end
end


Is there a better way to do this? Could I use some sort of table or something?

2
So I just got a shiny new Nspire with Touchpad! I don't exactly know where to start with setting it up, though.


Questions:
1. How do I switch the OS to the CAS version?
2. How then do I get the OS to 3.6?
3. Will any of this affect 84+ keypad compatibility?

3
Lua / Is there a replacement for gc:setAlpha in apilevel>=2.0?
« on: June 14, 2014, 10:52:50 pm »
I was wondering if I could draw a transparent rectangle.

4
Lua / Is there any form of sleep or delay function?
« on: March 24, 2014, 10:15:05 pm »
I was wondering what the best way to delay the system would be. Would it be calling a timer and using that as your delay? Would it be putting the system in a while loop until timer.getMilliSecCounter() returns a certain value?

I was wondering how to do this to make text look as if it's being typed in, like in many RPG games.
EDIT: Got this working with timer, not sure if there's a better way to do this.

5
Casio Calculators / Should I get a Casio FX-9750GIIwe for $15?
« on: March 23, 2014, 10:23:12 pm »
At my local Target, I saw a few Casio FX-9750GIIwe calculators for $15. I've never owned a Casio calculator before, and don't know if this is worth buying. I've heard that you can somehow upgrade it to a 9860, whatever that means. Are there programs for the 9750/9860, and could you link me to a few sites for them?

6
TI-Nspire / Lights Out for Nspire!
« on: November 03, 2013, 10:33:01 am »
So I was browsing ti-calc yesterday, and I noticed that there was no Lights Out game for Nspire. So then... this happened. :D

How to play:
Try to get all the 1s to become 0s.
Use start(x,y) to create a random x by y board.
Use toggle(x,y) or t(x,y) to switch the state of a given square and those adjacent to it.

Current features:
•The game is 100% playable.
•There is a turn counter.
•Custom sized boards.
•Random level generation.
•Win detection.

Change log:
1.0.1
•Bugfix, such as fixing 1X2 boards (idk why you'd do that)
•Increased the amount of shuffling at the beginning of the game.
•Fixed my bad English.

1.0
•Initial release.

I'm open to new suggestions for features if anyone has some.
Anyways, I hope you all enjoy!

7
TI-BASIC / [Nspire] Buggy Inflection Point Code
« on: October 24, 2013, 10:35:35 pm »
I've been programming an inflection point solver in Nspire BASIC, and my code seems to have an odd bug in it. If x^4+cx+d, where c and d are constants (ex. x^4+3x), is entered, the program spits out an error of nsolve not having an equation in the first argument, and I can't figure out why.

Code: [Select]
Define inflect(ex)=
Func
:Local ansx,di2,di3,ex,i,out
:derivative(ex,x,2)→di2
:derivative(di2,x)→di3
:ansx:=10^(99)
:out:={}
:For i,1,10
:  nSolve(di2=0,x=ansx,−10^(99),ansx-10^(−7))→ansx
:  If ansx="No solution found" Then
:    Exit
:  EndIf
:  If 0≠di3|x=ansx Then
:    out[2*i-1]:=ansx
:    out[2*i]:=ex|x=ansx
:  EndIf
:EndFor
:Return out
:EndFunc
ex is the expression entered, di2 and di3 are the second and third derivatives respectively, out is the output, ansx is the last x value found, and i is the for loop variable.

Also, any suggestions on how to make my code more efficient and such would be nice.

EDIT: Attached program below.

8
TI-BASIC / [Nspire] Func EndFunc
« on: October 22, 2013, 02:23:16 am »
On the Nspire, there's an option to add a Func...EndFunc into your program. My question is why? Can I use it to define a multiline function in my program or function?

Was wondering this because functional programming.

9
TI-BASIC / [Nspire] Optional arguments
« on: October 11, 2013, 05:52:22 pm »
So I was programming in TI-Nspire BASIC, and I was wondering if there was a way to specify an optional argument in a program. The built-in functions have these, so I was wondering if TI implemented it for user-created functions.

10
Calculator C / Nspireio Help
« on: September 28, 2013, 11:32:38 am »
So recently I've tried to use the ndless sdk to make some stuff for my calculator. Nspireio is pretty cool and all, but I really can't make sense of the documentation. I figured out how to use nio_printf as that's basically printf, but there's no nio_scanf... what am I supposed to do to take input?

11
Introduce Yourself! / Hello Omni!
« on: September 27, 2013, 10:52:55 pm »
Hello everybody. I go as Roondak, or Roon for short. I've been lurking for about 3 months now, but I thought it good to finally make an account. I got my first graphing calculator, the TI-Nspire CX CAS last June, and I've had experience coding on/for it in TI-Basic, Lua, and C. I'm currently working on a text adventure engine for TI-Basic, which I will plan to release and use to make text adventure games.

Anyways, I guess I'll see you all around the forum.

Pages: [1]