PlaneShift

Fan Area => The Hydlaa Plaza => Topic started by: Dameon on February 03, 2004, 04:09:36 am

Title: CB RELEASE DATE CALCULATOR!
Post 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
Title:
Post by: Savion on February 03, 2004, 04:11:08 am
Finaly, Dameon does something useful. :D

-- edit --

/me reads fine print

Damn It!
Title:
Post by: Kixie on February 03, 2004, 04:25:28 am
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
Title:
Post by: Kuiper7986 on February 03, 2004, 06:52:53 am
I\'m 17 now, so that means I\'ll be playing CB when I\'m 36.
Title:
Post by: Uyaem on February 03, 2004, 12:13:16 pm
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]

;)
Title:
Post by: Dameon on February 03, 2004, 02:36:21 pm
Ah simple syntax error. Fixed it ;)
Title:
Post by: Sinon on February 03, 2004, 03:35:19 pm
Quote
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...
Title: Well...
Post by: Dameon on February 03, 2004, 04:12:49 pm
Well, it compiles, but it dusn\'t run :(

Some Exception in thread main error at runtime that I can\'t figure out...

Code: [Select]

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);

   }

  }

}

Title:
Post by: lynx_lupo on February 03, 2004, 04:20:29 pm
trying with BufferedReader, but I get a strange error. hm

eh, my fault...but the results are really discuraging! :D
Title:
Post by: Dameon on February 03, 2004, 04:27:54 pm
*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!):

Code: [Select]

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);

    }

       
    }
}
Title:
Post by: Kixie on February 03, 2004, 05:45:56 pm
Quote
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...*
Title:
Post by: Dameon on February 04, 2004, 01:47:20 am
I figured I would do it in C++ too:

Code: [Select]

//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
}
Title:
Post by: RussianVodka on February 04, 2004, 01:49:49 am
so, how long till CB is released?
Title:
Post by: Kixie on February 04, 2004, 01:51:38 am
6776 days! thats only 162624 hours!!!! WEEEEEEE!!!!
Title:
Post by: Davis on February 04, 2004, 01:54:27 am
Here\'s the program everyone seemed to be using before:

#include
int main() {
cout<<\"CB Release date: 2 months from now\";
return 0;
}

 :D
Title:
Post by: Dameon on February 04, 2004, 01:57:28 pm
I have a feeling mine is more accurate. If I feel like it, I\'ll make an applet for everyone to use :)
Title:
Post by: lynx_lupo on February 04, 2004, 02:26:10 pm
hahahaha!
 :P
Title:
Post by: Uyaem on February 04, 2004, 02:53:36 pm
Quote
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
Title:
Post by: Dameon on February 04, 2004, 03:17:06 pm
In that case, I\'m doing it!
Title:
Post by: Uyaem on February 04, 2004, 03:29:56 pm
busted.... :D
Title:
Post by: druke on February 04, 2004, 03:43:26 pm
whats up with easy reader? am  not importing the right files?
Title:
Post by: lynx_lupo on February 04, 2004, 03:50:41 pm
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).
Title:
Post by: Dameon on February 04, 2004, 04:07:41 pm
As long as you compile it with the program, easyreader should work fine... man its been a while since I made an applet.
Title:
Post by: Axsyrus on February 04, 2004, 06:27:32 pm
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 )
Title:
Post by: Dameon on February 04, 2004, 06:31:21 pm
bah... php.
Title:
Post by: elscouta on February 04, 2004, 06:35:42 pm
lol, php is easier indeed.
Title:
Post by: Dameon on February 04, 2004, 06:40:08 pm
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 ;)
Title:
Post by: Axsyrus on February 04, 2004, 06:42:01 pm
Quote
Originally posted by Dameon
bah... php.


says the person scripting stuff in JAVA :P
Title:
Post by: elscouta on February 04, 2004, 07:17:35 pm
bah...

Code: [Select]

#!/bin/bash

wall \"CB will come in two months\"
Title:
Post by: Uyaem on February 04, 2004, 07:35:39 pm
Quote
Originally posted by Axsyrus
Quote
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
Title:
Post by: Dameon on February 04, 2004, 09:18:36 pm
Java <> Javascript

Javascript is internet based

Java is not (unless you are dealing with applets)
Title:
Post by: Saphire on February 05, 2004, 01:13:36 am
The final version of planeshift will be released when

0 > 1


 :P
Title:
Post by: Dameon on February 05, 2004, 02:56:16 am
so

Code: [Select]

if (0!>1)
     System.out.println(\"NOT FINISHED\" );
else
     System.out.println(\"O BY LAANX... FINALLY DONE!!!\" );


:D:D:D:D:D