PlaneShift
Fan Area => The Hydlaa Plaza => Topic started by: Dameon on February 03, 2004, 04:09:36 am
-
Hey, well, I finally did it. I wrote the code to acurately predict the release of CB! (In Java even!)
public ReleaseDateCalculator{
public void main(String args[]){
int Current_Estimate=0;
long delays=0;
int Actual_Release=0;
int number_of_guesses= new Int[20];
int len = number_of_guesses.length;
EasyReader console = new EasyReader();
Current_Estimate=console.readInt;
for(int counter=0; counterdelays=(long)(Math.random * 982563475467);
number_of_guesses[count]=delays;
Actual_Release=number_of_guesses[count];
System.out.println(\"Guess number of days \" + (count+1) +\": \" + Actual_Release);
}
}
}
*note: any guess generated by the Release Calculator does not represent the actual release date. Come on, if I could calculate that, would I be getting minimum wage at a shoe store? I think not. Heck... I don\'t even know if this would compile
-
Finaly, Dameon does something useful. :D
-- edit --
/me reads fine print
Damn It!
-
Ive known the equation for years but it really goes like this
CB release=Circumfrence of Draklars head-Xordans Pride/davis\' I.Q.x moogies time to react to flame
Which comes around to about 6777 days untill cb release. thats august 22nd if you do the math. Go on I dare you to add 6777 days to our callendar and see where ya end up :P. You can even work the equation. Draks head of course is the biggest number in that equation with xordans pride close behind. the 2 smallest are moogies reaction time to flames and davis\' IQ is tiny. That all comes around to
CB release=8500 in.-4500sq. inches/2 quotent *1.8885 seconds=6777 days (august 22, 2022.)
*bows*
*thinks about how many people are going to try this equation and become dumbfounded when they reach august 22, 2022....*
hehe off by 5 days.. silly me
-
I\'m 17 now, so that means I\'ll be playing CB when I\'m 36.
-
hehehe nice :D
But it won\'t compile unless your EasyReader constructor gets his empty brackets.
Let me take a look in my drawer, i might have some left...
Uh, a big pair.
[size=20]()[/size]
;)
-
Ah simple syntax error. Fixed it ;)
-
Originally posted by whemyfield
Ive known the equation for years but it really goes like this
CB release=Circumfrence of Draklars head-Xordans Pride/davis\' I.Q.x moogies time to react to flame
Which comes around to about 6772 days untill cb release. thats august 22nd if you do the math. Go on I dare you to add 6772 days to our callendar and see where ya end up :P. You can even work the equation. Draks head of course is the biggest number in that equation with xordans pride close behind. the 2 smallest are moogies reaction time to flames and davis\' IQ is tiny. That all comes around to
CB release=8500in-4500/2 quotent *3.386=6772 days (august 22, 2022.)
*bows*
*thinks about how many people are going to try this equation and become dumbfounded when they reach august 22, 2022....*
Actually im thinking of dumbfounding you :P
If you would have included the 29th of february 5 times (every 4th year including this) you would have ended up on the 17th of august 2022 instead. :P Sorry to dissapoint you :D
*bows*
BTW: How did you count this? Dont tell me counted to 6772 in ur callender...
-
Well, it compiles, but it dusn\'t run :(
Some Exception in thread main error at runtime that I can\'t figure out...
public class PSCalculator{
int delays=0;
int Actual_Release=0;
int number_of_guesses[]= new int[20];
int len = number_of_guesses.length;
public void main(String[] args){
System.out.println(\"Enter Current Estimate in Months: \" );
EasyReader console = new EasyReader();
int Current_Estimate = console.readInt();
for(int counter=0; counter
delays=(int)(Math.random() * 98256);
number_of_guesses[counter]=delays;
Actual_Release=number_of_guesses[counter];
System.out.println(\"Guess number of days \"+ (counter+1) +\": \" + Actual_Release);
}
}
}
-
trying with BufferedReader, but I get a strange error. hm
eh, my fault...but the results are really discuraging! :D
-
*UPDATE*
It works now... stupid ReleaseSettings. The brackets were fine, it wouldn\'t compile if it wasn\'t. Here\'s the code. If you are seriously thinking about running it, you need to compile EasyReader too (I use codewarrior ... stop laughing!):
public class PSCalculator {
public static void main(String args[]) {
int delays=0;
int Actual_Release=0;
int number_of_guesses[]= new int[20];
int len = number_of_guesses.length;
System.out.println();
System.out.println();
System.out.println(\"------------------------------------\" );
System.out.println(\" CB Release Calculator \" );
System.out.println(\"------------------------------------\" );
System.out.println();
System.out.print(\"Enter Current Estimate in Days: \" );
EasyReader console = new EasyReader();
int Current_Estimate = console.readInt();
System.out.println();
for(int counter=0; counter
delays=((int)(Math.random() * (Current_Estimate * 3)));
number_of_guesses[counter]=delays;
Actual_Release=number_of_guesses[counter];
System.out.println(\"Number of days guessed by Dev # \"+ (counter+1) +\": \" + Actual_Release);
}
}
}
-
Originally posted by Sinon
BTW: How did you count this? Dont tell me counted to 6772 in ur callender...
No I used simple mental math. seems im off by 5 days... *edits post to meet requirements...*
-
I figured I would do it in C++ too:
//Release Date Calculator
#include
#include
using namespace std;
int main()
{
int delays=5;
int Actual_Release=0;
const int arraysize=10;
int number_of_guesses[arraysize];
int estimate = 0;
cout << endl;
cout << endl;
cout << \"------------------------------------\" << endl;
cout << \" CB Release Calculator \" << endl;
cout << \"------------------------------------\" << endl;
cout << \"\" << endl;
cout << \"\" << endl;
cout << \"Enter Current Estimate in Days: \";
cin >> estimate;
cout << \"\" << endl;
for(int counter=0;counter delays = estimate * int(20 +(rand()%10));
number_of_guesses[counter]=delays;
Actual_Release = number_of_guesses[counter];
cout <<\"Number of days guessed by Dev # \" << (counter+1) <<\": \" << Actual_Release << endl;
}
cout << endl;
return 0; // Exit the program
}
-
so, how long till CB is released?
-
6776 days! thats only 162624 hours!!!! WEEEEEEE!!!!
-
Here\'s the program everyone seemed to be using before:
#include
int main() {
cout<<\"CB Release date: 2 months from now\";
return 0;
}
:D
-
I have a feeling mine is more accurate. If I feel like it, I\'ll make an applet for everyone to use :)
-
hahahaha!
:P
-
Originally posted by Dameon
I have a feeling mine is more accurate. If I feel like it, I\'ll make an applet for everyone to use :)
If you do that, by the love of Laanx, i swear I\'ll make an assembler-coded clone for 8051 processors, so you can run it on your laundry machine.... :P
-
In that case, I\'m doing it!
-
busted.... :D
-
whats up with easy reader? am not importing the right files?
-
I used BufferedReader which is part of the java.io lib and ergo works perfectly(but it\'s a bit more complex).
If you want, I can paste it here(the code).
-
As long as you compile it with the program, easyreader should work fine... man its been a while since I made an applet.
-
bah, n00bs. All that trouble compiling etc..
This is how you do it:
Crystal Blue Release Date (http://q-news.sourceforge.net/temp/crystal_blue.php)
:P
(this script doesn\'t really give you the release date, just the estimated time of \"a few months\", the real release date is the best hidden secret in the history of online gaming, even the devs don\'t know it :p )
-
bah... php.
-
lol, php is easier indeed.
-
but, its not an application is it? No! If I wanted to, I could make this in .php or .asp... heck, I could do in JavaScript, or VB too ;)
-
Originally posted by Dameon
bah... php.
says the person scripting stuff in JAVA :P
-
bah...
#!/bin/bash
wall \"CB will come in two months\"
-
Originally posted by Axsyrus
Originally posted by Dameon
bah... php.
says the person scripting stuff in JAVA :P
Java is not a script language (precompiled to object code) :P
-
Java <> Javascript
Javascript is internet based
Java is not (unless you are dealing with applets)
-
The final version of planeshift will be released when
0 > 1
:P
-
so
if (0!>1)
System.out.println(\"NOT FINISHED\" );
else
System.out.println(\"O BY LAANX... FINALLY DONE!!!\" );
:D:D:D:D:D