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.


Messages - nemo

Pages: 1 ... 28 29 [30] 31 32 ... 82
436
TI Z80 / Re: Triangle Solver
« on: November 23, 2010, 04:07:17 pm »
thanks guys!

unfortunately, my math teacher is evil and is making us use non-graphing calculators on the upcoming test. so this was (kind of) a waste, but now i'm 100% sure what i'm doing is correct.

437
TI Z80 / Re: Triangle Solver
« on: November 22, 2010, 05:08:17 pm »
PERFECT MY TEST ON GEO IS WEDNESDAY AND I WILL LOVE THIS LIKE A CHILD well not really but great!

glad i could aid you?

438
TI Z80 / Triangle Solver
« on: November 22, 2010, 05:05:24 pm »
Triangle solver! (this topic is so if i RAM clear my calculator, it's no big deal cause it's now online)

this is a graphical triangle solver. if you give it 3 pieces of information, it will give you the other 3. it has no error checking, so if you get err: domain, the triangle probably does not exist. do not give the triangle solver 4+ pieces of information, it is not smart enough to handle this. it assumes you put in 3. it will solve the following conditions: SSS, SAS, ASS (wait, what?), ASA, AAS. it will also tell you if your triangle is ambiguous, but it will sadly not give you the second triangle. it will however, store the complement of the first angle solved into the variable M and then you can solve for the second triangle by running the program again.

um.. yeah. it's handy. and under 1000 bytes (hooray! goal met!)

439
Computer Programming / Re: Quick guide to Java?
« on: November 21, 2010, 10:29:17 pm »
Java can be programmed for mostly anything, as of recently. even platform-specific electronics can sometimes run java. if there's one thing java's good at, it's portability its ability for old versions of programs to still work today. oracle is so paranoid about java backwards-compatibility, that some of the constants aren't all uppercase (Color.Green == Color.GREEN). phones can run java, computers can obviously run java, i've even see a VC recorder run java. but what calcforth said is true. it really isn't a good language. and if you try to do something out-of-normalcy in the language, you'll get hit for it because java is all about standards.

440
Computer Programming / Re: Quick guide to Java?
« on: November 21, 2010, 04:12:33 pm »
0: Some random java notes. These are kind of advanced though, but there are some basic concepts that are explained there. also, if you need help, this forum responds relatively quickly. they'll make you feel stupid, but they give good explanations and links.

1: if you're used to axe, do NOT use ^ as the modulus operator. modulus is %.(5%3 is 2) also, if you haven't programming computers much here are some examples of operators:

int p = 5;  // two forwardslashes denote comments. assigns 5 to signed integer variable p. there are no unsigned variables.
if (5==p)  // if p is equivalent to 5. notice that there are two equal signs. you'll make the mistake of putting = a few times. so put the numeric on the left side, because then the compiler will say "hey, you can't assign a variable into a numerical number."
/* this is also a comment */

2. a class is essentially your own data type. it has three things: Instance Variables, Constructors, Methods.
instance variables are local to the class. all of your instance variables should be like this:
Code: [Select]
private int instanceVar;
they should have the private visibility modifier. constructors are a special kind of method. they initialize instance variables. methods are basically subroutines. here's a really, really basic class:

Code: [Select]
public class MyClass{
     //instance variables!
     private int aNumber;
     private boolean amIAwesome;
     //constructor(s)!
     public MyClass(/*parameter list goes here*/){
     aNumber = 0;
     amIAwesome = true;     //i am awesome by default.
     }
     public MyClass(int num, boolean isAwesome){
     aNumber = num;
     amIAwesome = isAwesome;
     }

     public void setAwesomeness(Boolean awesomeness){  //public means it can be accessed outside this class. void means it doesn't return anything.
     amIAwesome = awesomeness;
     }
 
     public int getNumber(){          //int means it returns an integer. note: you can have an empty parameter list. you still need the paranthesis.
     return aNumber;
     }
}

441
Axe / Re: 16*16 Images
« on: November 21, 2010, 03:17:50 pm »
Pt-Change takes a pointer to an 8-byte sprite. a 16x16 image is 32 bytes. you'll need to do this:

Code: [Select]
Lbl 1
[00000000000000000000000003F80404080410027FFF8001FFFF781E4812300C->Pic1
Pt-Change(0,0,Pic1
Pt-Change(8,0,Pic1+8
Pt-Change(0,8,Pic1+16
Pt-Change(8,8,Pic1+24
DispGraph
Repeat getKey->Z
If Z>=1
Goto1

442
Official Contest / Re: [BULLETIN] Cage Matches
« on: November 20, 2010, 08:38:30 pm »
Oh wow, this should be interesting...who's the judge?

the community judges the cage matches

443
Official Contest / Re: [BULLETIN] Cage Matches
« on: November 20, 2010, 08:24:30 pm »
making your own libs for a hybrid Basic one-week-contest is one of the most hardcore things i've ever heard.

444
Official Contest / Re: [BULLETIN] Cage Matches
« on: November 20, 2010, 07:12:26 pm »
Yes.

so Axe and hybrid Basic competitions could turn into ASM competitions, theoretically?

445
Other Calc-Related Projects and Ideas / Re: Team Battles
« on: November 20, 2010, 04:08:16 pm »
yes: a homescreen based strategy game.  in BASIC.

neat. i think you should let them duke it out in one hour though, it'd be interesting to see the results. plus the extensions have been insanely long already...

446
Other Calc-Related Projects and Ideas / Re: Team Battles
« on: November 20, 2010, 04:05:44 pm »
question: is there a theme to this contest?

447
Other Calc-Related Projects and Ideas / Re: Team Battles
« on: November 20, 2010, 04:02:30 pm »
Yunhua was been unable to get the battle engine to me until this morning because of parents and computer access. Plus, our code seems to be mutually incompatible  :P

this is what i meant when i said raylin has the advantage.

448
Metroid: Chozo Mission / Re: Metroid Chozo Mission
« on: November 20, 2010, 03:56:28 pm »
how about [email protected] then you can just guess

i'm sorry i don't understand...

449
Official Contest / Re: [BULLETIN] Cage Matches
« on: November 20, 2010, 03:54:34 pm »
this should be an interesting one..

450
Axe / Re: Trig in Axe
« on: November 20, 2010, 03:47:09 pm »
i know, but it'd be cool to write a triangle solver in axe. regardless, i have one (almost) finished in BASIC which is only missing the ambiguous case.

Pages: 1 ... 28 29 [30] 31 32 ... 82