Join us on Discord!
You can help CodeWalrus stay online by donating here.
Menu

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.

Show posts Menu

Messages - _iPhoenix_

#631
Randomness / Forum Game: Counter!
March 21, 2017, 08:19:12 PM
If you don't know what a forum game is, well, it's a game you play on a forum.

In this forum game, you have a number. This post is one, the next post will be 2 AND SO ON (jeez). In your post, you post some information about you that relates you to that number. For example:


Quote from: My post, which is number oneI am 1.
I am related to this number because I have one color calculator, my CE. I tend to spend a lot of time on my CE, which can sometimes be a bad thing ;D .
I also have a single monochrome calc, but I do not spend as much time on that calculator.

Your post, of course, will be longer, as that was just a demo.

RULES:
Only post (here) twice per week, at most, and don't double post.
No profane or inappropriate comments/stories.
If you have nothing in common with the next number, reset to 1.
You cannot be the same number twice. (I cannot be one again)
You cannot reset to one to be mean. That simply makes it less fun for everyone.
No flaming.  >:( >:D (jk, but seriously, don't :thumbsup: )
The objective is to get as high as we can, but that is not the objective of the thread (It's an added objective). The objective of the thread is to have fun and learn about each other.


GO!
#632
Maybe one of the kitties could have a rainbow trail?

This is purely amazing, great job!
#633
Quote from: c4ooo on March 20, 2017, 10:53:04 PM
@_iPhoenix_  can you explain in detail how the minimap is used to project the 3D image? Seems pretty interesting/clever for TI-BASIC. :)

As for increasing speed, i heard Lists are faster than Matrixes, but i may be wrong. ALso since you use the minimap to project it probably won't make an improvement.
Yes. I draw the minimap, then used pxl test, at different angles for the raycasting.

And a code golf is where users try to shorten or speed up a section of code, in a competitive fashion.

Golf: smallest score wins
Code Golf: smallest size/time wins.
#634
Randomness / Re: SXZvYWgncyBBUkc=
March 20, 2017, 11:19:27 PM
Is anyone going to solve my code? ;)

#635
General Music Talk / Re: What are you listening to?
March 20, 2017, 07:56:07 PM

@pimathbrainiac That's awesome!
#636
I believe I would have to use binary space partitioning, as Raycasting requires trig, and decimals. However, it would remove all speed benefits of using ICE.
#637
Agreed. I might do a code golf on it, I don't know.


After a bit of thinking, I think I will.


Whoever can get the program the fastest wins. Also, size counts, but not as much as speed.


Formula:
speed^2+2size
#638

I was told it couldn't be done. albeit by the non-programmer types
That got me agitated, so I did it.


I made the first (to my knowledge) completely pure TI-Basic raycaster.


For those who don't know what raycasting is, it is a method of drawing a 3D environment from a 2D map. It is also my area of expertise


Just input any 10x10 matrix in to [A], then it will render the first screen.
For example, I loaded the matrix displayed as a demo on the CC19 thread into [A], and got this:



There are a few things to notice:


The minimap, on the bottom right. Believe it or not, this is essential to the program, as it does all of its detection and ray projection on it. I also spent more time making the bevel look right then anything else. (This is an old version, and I forgot to put a marker for where the player is.)


The shading, which represents distance. I chose this color shading, as it was easier on the eyes. In theory, you could easily edit the program to do any color of shading you want.


The glitch, slightly left of center. This is a WIP, but I doubt I will be able to fix that. (as it is due to the way I am calculating my rays' paths/intersections, and there is no other efficient way.)


This program is not complete and I have a bit left to implement. Here we go:


1) Optimization. Currently, the 'game' is unplayable, as it takes it like 2 min to render a screen. Most of this is due to the programming language, but some of it can probably be sped up.
2) Key recognition. Not only is the 'game' too slow to be played, it does not recognize any keypresses. This is due to the fact that I wanted to post this early so you guys could all see it. Compared to the main bits, this should be really easy. (but still take awhile, arbitrary rotation measurements are not fun to work with. For example, looking forward (right on minimap) is 310 degrees. Don't ask me why.) Complete! (wow that was quick!)
3) Prettifying the code. Perhaps.
4) You tell me. I don't really know where to go with this...


litrosaist had a speed modification. x2
womp shows me I cannot type. x2


Code here, but movement is all screwed up:
Degree
0→Xmin
{BLACK,DARKGRAY,GRAY,MEDGRAY,LTGRAY,WHITE,WHITE→L₁
70→Xmax
-­20→Ymin
20→Ymax
310→R
119→S
219→T
Lbl RD


ClrDraw
For(A,1,51,1
For(B,1,100,50
Pxl-On(163-A,263-B,GRAY
Pxl-On(163-B,263-A,GRAY
Pxl-On(164-A,264-B,GRAY
Pxl-On(110+A,210+B,MEDGRAY
Pxl-On(110+B,210+A,MEDGRAY
Pxl-On(109+B,209+A,MEDGRAY
Pxl-On(109+A,209+B,MEDGRAY
End
End


For(A,1,10
For(B,1,10
If [A](A,B
Then
For(C,1,5
For(D,1,5
Pxl-On(110+(5A-4+C),210+(5B-4+D),BLACK
End
End
End
End
End
DelVar N
For(A,70-R,1-R,­1
N+1→N
DelVar C
cos(A→P
sin(A→Q
Repeat Ans
C+1→C
pxl-Test(int(S+CP),int(T+CQ
End
If C<20:Then
int(C/3→V




For(B,­int(40/C)/2,int(40/C)/2
For(D,1,2
Pt-On(N,B,D,L₁(V
End
End
End
End
Pxl-On(S,T
Repeat Ans
getKey
End
If K=24
R-2→R
If K=26
R+2→R
If K=25
Then
int(S+5cos(R→S
int(T+5sin(R→T
Else
If K=34
Then
int(S-5cos(R→S
int(T-5sin(R→T
End
End
If K=45:Stop
Goto RD



Also: There is now a code golf happening with this code!! Who ever can get it the fastest wins a small banner (for sig) and (maybe) some karma or something.
Formula (for score):
speed^2+2size
#639
Other / Re: Fun Math/Logic Problems!
March 18, 2017, 02:53:03 PM
I might not disqualify you; that's pretty clever.  (-_(//));
*disqualifies juju*
oops...  :-X

Meh. Your images aren't working for me, btw. Perhaps also find a super cheaty way to solve my second problem?
#640
Other / Re: The funny quote thread (NSFW)
March 17, 2017, 11:48:46 PM
Yeah.

Also: Funny little Wolfram Alpha (bug? Glitch? Easter Egg?) (Which is what DecBot3 uses I think):
Quote from: SAX
7:43:09 PM [JWinslow23] !calc what's the airspeed velocity of an African unladen swallow
7:43:11 PM
  • [DecBot3] JWinslow23: there is unfortunately insufficient data to estimate the velocity of an African swallow (even if you specified which of the 47 species of swallow found in Africa you meant) / (asked, but not answered, about a general swallow in the 1975 film Monty Python and the Holy Grail)
    7:44:03 PM [JWinslow23] !calc what's the airspeed velocity of a European unladen swallow
    7:44:05 PM
  • [DecBot3] JWinslow23: 11 m/s (meters per second) / (asked, but not answered, about a general swallow in the 1975 film Monty Python and the Holy Grail)
So yeah :P
#641
Other / Re: Fun Math/Logic Problems!
March 17, 2017, 11:39:09 PM
Amazing. Perhaps check "Don't use smileys? as 8) turned into 8)


I got an answer for
3: [spoiler] 8/8+(8+8)/8 [/spoiler]
5: [spoiler] 8-(8+8+8)/8 [/spoiler]
12: [spoiler] 8+8*8/(8+8) [/spoiler]
14: [spoiler] 8+8-(8+8)/8 [/spoiler]
Credits to PT_ ^^
And the longest continuous string of numbers that can be produced using this method is: [spoiler]13: 0-12, but you could do negatives.[/spoiler]







I got another one, and it's even more tedious.


If you have 4 of the numbers 1 - 9 (excluding 4, that makes this pointless), and you can only use one of the same type per equation, what numbers can you NOT express using only:
(), +, - (or negative), /, ^, sqrt(), nth-root(), and factorial.
1-200 is required, but -500 to 500 for brownie points! (yay)


I tested this out, and it is rather cool.


PLEASE USE A PROGRAM (any language is fine). DO NOT WASTE YOUR LIFE

#642
Other / Fun Math/Logic Problems!
March 17, 2017, 09:54:08 PM
I got one!

With 5 eight's, and 5 basic operators (+, -, *, /, ^, plus parenthesis, of course.), is it possible to get the numbers 1 - 16 (It may be no, 16 is arbitrary ;) )?
If so: how, and how far can you go (continuously after 10)?


E.X.
(8/8)^8-(8/8) = 0


jonbush asked a very good question:
Quote from: jonbushSo we must use all five 8's, but we can use any number of operators?


Yes. NO OPERATORS/OPERATIONS NOT MENTIONED!


And no programs to try every single combo, either. Fine... I used one myself to solve it anyway...


And if you do create a program, you need to explain (prove, in short) why that particular one is impossible... :ninja:


Hints (filthy cheater :P ):


Hint #1
Hint #2

Use spoilers for your answer :P
#643
Other / Re: The funny quote thread (NSFW)
March 17, 2017, 01:12:34 AM
This is from Cemetech SAX and was posted in my Pi vs Tau thread:
Quote from: Pi VS Tau Thread on Cemetech
*keeping it cuz it's funny and adds to the thread. Admins, I hope this doesn't add to my word count...
Quote from: SAX12:11:28 AM [#] [MateoC] I think that we should just use C
12:11:32 AM [#] [MateoC] There's M_PI
12:11:35 AM [#] [dTal] jacobly: so you disagree with the use of nonlethal weapons
12:11:36 AM [prgmTrouble] I don't degree
12:11:41 AM [#] [MateoC] But no M_TAU
12:12:01 AM [#] [jacobly] I wouldn't say lethal weapons are easier, but that's just me
12:12:13 AM [_iPhoenix_] I vote lethal weapons. JUST FREAKING SETTLE THE ISSUE!
12:12:30 AM [#] [jacobly] #define M_TAU (M_PI/2)
12:12:51 AM [#] [jacobly] / because that's how I'm defining it
12:13:11 AM [#] [MateoC] Haha jacobly++
12:13:19 AM [prgmTrouble] #define M_TAU (2M_PI)
12:13:27 AM [#] [jacobly] SYNTAX ERROR
12:13:43 AM [#] [MateoC] ERR: Internal error 3214324
12:13:51 AM [#] [MateoC] Please contact Technical Support
12:14:01 AM [#] [MateoC] That's about as good as ZDS does
12:14:10 AM [#] [dTal] I don't think that'll work, won't the macro expand to 23.14159...
12:14:18 AM [#] [jacobly] no
12:14:22 AM ***prgmTrouble <
12:14:24 AM [#] [jacobly] it is a syntax erro
12:14:25 AM [#] [jacobly] r
12:14:49 AM ***prgmTrouble <--
12:14:37 AM [#] [jacobly] because 2M_PI is not a valid number
12:14:52 AM [#] [jacobly] and M_PI2 would be undefined
12:15:04 AM [prgmTrouble] mah name
12:15:17 AM [#] [MateoC] Good thing M_2PI is sometimes defined
12:15:31 AM [prgmTrouble] its a conspiracy
12:15:56 AM [prgmTrouble] it's
12:16:23 AM [#] [dTal] my reaction on learning about Tau was "how could I, and especially the people around me, have been so stupid"
12:16:47 AM [#] [dTal] I am baffled by the pi-defenders
12:16:56 AM [prgmTrouble] I blame the government
12:17:42 AM [prgmTrouble] the government put dihydrogen monoxide in our water
<snip> (Mateo believes Diameter is easier to measure then Radius, then
dTal talks nerd stuff, which gets Mateo (and everyone else) confused)
12:19:32 AM [prgmTrouble] use DEG
12:19:44 AM [ReGuess] use GRAD
12:19:57 AM [#] [Ivoah] Use Tai
12:20:14 AM [prgmTrouble] use calculator
*more nerd stuff from dTal
*nerd arguing
12:23:09 AM [#] [MateoC] Let's just go do something productive like fix Mateo's scaling routine
12:23:11 AM [#] *MateoC hides
12:23:32 AM [#] [Ivoah] Or solve integrals
12:23:44 AM [prgmTrouble] or use degrees
*nerd stuff from jacobly
12:24:47 AM [#] [MateoC] Have fun drawing your unit circle in terms of tau
12:25:19 AM [prgmTrouble] just do double the existing fraction
12:25:31 AM [ReGuess] prgmTrouble, if you like degrees so much, tell me, what's the formula for the length of an arc of a circle with radius r through an angle theta
12:25:32 AM [#] [dTal] MateoC: I don't see the problem
12:26:05 AM [#] [jacobly] even better with degrees, what d/dx sin(x) where is is degrees
12:26:10 AM [#] [jacobly] *x
*dTal talking about integrals of [zZz]
*prgmTrouble thinking about cosx, incorrectly.
12:28:24 AM [_iPhoenix_] Awkward Silence
12:29:16 AM [_iPhoenix_] did dTal explode everyone's brains?
12:29:17 AM [prgmTrouble] reguess: 2pi*r*theta/360
12:29:47 AM [_iPhoenix_] lel pi in degrees
12:30:01 AM [ReGuess] correct.
12:30:19 AM [_iPhoenix_] prgmTrouble had to ReGuess
12:30:21 AM [prgmTrouble] using pi as a ratio -_-
12:30:42 AM [_iPhoenix_] ik
*ReGuess gives me karma
*nikkybot fangirling over tswilliamson for no reason
12:31:56 AM [ReGuess] I'm working on the derivative. Let u = tau*x/360. d/dx sin(360*u/tau) = cos(360*u/tau)du/dx =...
*Nerd ^^
12:32:50 AM [ReGuess] (tau/360)cosx
*Much nerd ^^
12:33:39 AM [prgmTrouble] pi/180*cosx
12:33:48 AM [prgmTrouble] if x is in degrees
*he's all about degrees, 'bout degrees, prgmTrouble
*updated the post*
12:34:07 AM [ReGuess] lol _iPhoenix_++
12:34:10 AM [#] [jacobly] heh, that work was wrong but the answer was right...
12:34:11 AM [_iPhoenix_]
12:34:16 AM [ReGuess] I wear that label with pride
12:34:59 AM [#] [Pieman] I love it when i get the answer right with the wrong work!
12:35:21 AM [ReGuess] is it wrong because of my choice of fundamental constant? or was my work actually wrong?
12:36:18 AM [#] [jacobly] well the last step doesn't follow, so something earlier was wrong if you got the right answer
12:36:40 AM [#] [jacobly] maybe?
12:37:37 AM [prgmTrouble] hmmm
*extreme nerdism happening
12:37:47 AM [ReGuess] cos(360*u/tau)du/dx = cos(360*u/tau)(tau/360) = (tau/360)cos(x)
12:38:11 AM [ReGuess] chain rule
*minds go boom
12:38:24 AM [#] [jacobly] I'm just confused because you substituted for x
12:38:35 AM [#] [Pieman] @#$% it! I just remembered that I have a huge-ass calculus test tomorrow...
12:38:41 AM [#] [Pieman] Rip
12:38:48 AM [#] *Pieman dies
12:38:51 AM [ReGuess] oh. me too.
*ReGuess, you'll ace it...
12:39:04 AM [prgmTrouble] I only have a quiz
*so do I
12:39:43 AM [prgmTrouble] on F$%^ trig integrals with u substitutions and damn log rule
12:40:03 AM ***prgmTrouble rage quits life
*but then you won't be there for your quiz
12:40:07 AM [ReGuess] Yeah, you need to study
12:40:27 AM [ReGuess] if the chat logs are any measure.
*I'm keeping the log(chat
12:40:28 AM [#] *Pieman hands prgmTrouble a table to flip
12:40:55 AM [_iPhoenix_] ~flip
12:40:56 AM [#] [DoorsCS] (╯°□°)╯︵ ┻━┻
12:41:17 AM [prgmTrouble] lol
*ReGuess goes to bed
12:41:49 AM [Cemetech] _iPhoenix_ edited a post in [Tau vs Pi]
12:43:49 AM [_iPhoenix_]
12:43:59 AM [_iPhoenix_] I kept the log(chat
12:44:09 AM [prgmTrouble] priceless
*prgmTrouble talks about how number theory, asks how can we count with certainty anymore, and becomes a George Orwell-citing conspiracy theorist.
12:47:49 AM [prgmTrouble] there's a glitch in the matrix. the world isn't real
12:48:24 AM [prgmTrouble] "2+2=5" -George Orwell
12:49:08 AM [prgmTrouble] Big Bang (Theory)
12:49:20 AM [#] [MateoC] Evolution is just a theory
*Mateo, look at 2/3 of my programs in the archives
12:49:30 AM [prgmTrouble] #ItsOnlyATheory
12:49:57 AM [#] [Pieman] C is just a theory
12:50:01 AM [#] *Pieman hides
*burn mateo
*I roast prgmTrouble for using the word 'triggered' offensively. He promptly runs to the bomb shelter.
12:51:43 AM [prgmTrouble] people are only theories
12:52:11 AM ***_iPhoenix_ has to gtg
*<snip> I'm back
*prgmTrouble acts like a jerk (jk)
*I tell him to stop, Ivoah asks me why?
*Alex (comic) tells people to stop, everyone listens
12:58:08 AM ***prgmTrouble waits for a "[Cemetech] _iPhoenix_ added a post in [Tau vs Pi]" to happen with an annotation
12:58:31 AM [_iPhoenix_] Sure
*an annotation

Lines starting in "*" mean my annotations. I was half asleep, ok?!
chat transcript as text

#644
Those are really cool! Rip my graphics card, though....
#645
Randomness / Re: SXZvYWgncyBBUkc=
March 15, 2017, 03:32:48 AM
lol you screwed up big time. First off: I wrote a program to convert to Morse, so I suggest you do the opposite (write one to convert out of Morse) It's actually not too hard after that step. If you need any help, pm me!
[spoiler]And do you even HTML, bro?[/spoiler]
It is possible, CVSoft wrote a python program and solved it 1.5 min after I put the challenge out. Holy crud.
Powered by EzPortal