+-Discord Shoutbox


Alternatively, join us on Discord directly.
You can help CodeWalrus stay online by donating here.

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 - Woodrow

1
PC, Mac & Vintage Computers / Project LotG
January 21, 2019, 04:53:45 PM
So, I'm making a text adventure game for a competition. i want the game (which you just lost) to
- take player choices as input and store them
- depending on player choices, move throughout the story
- have unique responses to certain inputs for comic effect, including a catch-all for unrecognized inputs ("what does [input] even mean?")

heres a basic example using my (incomplete)!game path so far. (etc means thats the farthest ive programmed in that path)

start > look > look > look > death for annoying the narrator
start > look > look > west > death for annoying the narrator
start > east > death by boredom
start > west > pet the goat > etc
start > west > attack the goat > death by goat attack
start > west > feed the goat > death by goat bite

basically, there is only one correct path through the game. all other paths inevitably lead to death and end the program.

my question is, how can i do this without drowning in if/else if/else/while loops? is there a library that could make my life easier? im using c++, but i can switch to java if that means more efficiency.

i have about a month for the competition.
2
So I was trying to use the TI Connect software with my TI-83+ and a link cable I just got on Amazon. This is my first time using a link cable, so I pulled up a Dummies guide and got the TICon program on my Mac (High Sierra, Version 10.13.4 if that helps). I then tried to use the TI Device Explorer. After a wait of 10-15 minutes (I haven't timed it precisely, this is just an estimate), an alert pops up.

This is what is shown during the wait:



And this is the alert that pops up after.



Looking on Finder reveals absolutely nothing indicating that the calculator even exists.

Some other info:


  • Because I have an Air (mac that does not have USB ports), the cable is plugged into an adapter, which is plugged into the charger port.
  • I have programs in both the RAM and flash memory of the calc.
3
Drawing & Animation / Pride Flag Pokemon Recolors
June 12, 2018, 10:07:42 PM
aiwrojfkvbjanjfkjkanfdvs IM SO PROUD OF THESE jsdbkjvflnjdfbfjldksnjn



if anyone wants one, just @mention me on discord
4
Calc Projects, Programming & Tutorials / Commands?
January 25, 2018, 01:30:05 PM
I don't understand these commands/functions:

ln(
Web
Time
Menu( ((I get the syntax, and I even made a menu myself, but I can't figure out how to make it useful without using up a stupid amount of storage))
Lbl
Goto
GarbageCollect
sin(
cos(
tan(
5
I'm trying to figure out how to make a sprite on my TI-83+ without using up a Pic. Would I have to code the program to make the drawing pixel by pixel? What about animations?
6
Here, I used the location of the numbers of the calculator as arrows.

prgmARR:

7->M
Input "", M
If M=4: Y-1->Y
If M=6: Y+1->Y
If M=8: X-1->X
If M=2: X+1->X
If M=5: Stop
ClrHome
Output(X,Y,"O

prgmMOVE:

1->X
1->Y
Output(X,Y,"O
While 5=5:prgmARR:End:DelVar M

Goals:

Condense the code into one prgm

Use arrow keys instead of numbers if possible

Find a way to use the ClrHome command at the start of prgmMOVE

Add a boundary system
7
The original prgmERMINE was made a few months back on the way to Domino's Pizza. I showcased it (her?) at my school's STEAM club a few days(?) later. The reception was pretty good.

Here's the basic format for the code:

ClrHome
Input "CHAT: ", Str1
ClrHome
If Str1="INPUT":Output(1,1,"OUTPUT")


However, this gets really annoying when I have to type my call/response formula over and over again. Another big annoyance is accepting different inputs for the same output.


If Str1="HI" or Str1="HELLO" or Str1="HEY":Output(1,1,"HEY, NERD. "


My main goal here is to:

- Find a way to solve the aforementioned problems
8
I've been programming on my dad's old TI-83+ for about a year now. I've had some troubles. Case in point: prgmERMINE, my chatbot and my personal favorite, got deleted at least six different times due to the calculator freezing up, forcing me to replace the battery, which clears the RAM for some reason. I don't have a link cable, so I can't back up my prgms. I've managed to code (for the second time, since the original got deleted) a prgm that takes advantage of the way the Disp command scrolls through its strings if it is used enough times in one prgm. This took two separate prgms and about twenty minutes. "PLATINUM: " is what the prgm uses to ask you how many times you would like to "put up a stick". I suggest a number between 25 and 50.

prgmPLATMKR (needed to make prgmPLAT12 work) (do not run directly)


randInt(1,7→R
If R=1:Disp "-
If R=2:Disp "--
If R=3:Disp "---
If R=4:Disp "----
If R=5:Disp "-----
If R=6:Disp "------
If R=7:Disp "-------


prgmPLAT12 (actual prgm) (run directly)


Input "Platinum: ",N
N-1→K
For(N,1,K):prgmPLATMKR:End:prgmPLATMKR


    Any suggestions? My main goals for improvement are:

    Find a way to get this to work with only one prgm
Shorten the code in prgmPLATMKR (Thanks, Phoenix!)[/list]
Powered by EzPortal