Page 1 of 1

How much money earned Malivox?

Posted: 13 Aug 2008, 19:26
by Turmfalke
Based on his script and his momentary prizes. I figured out that the first level got 124 times bought and the second 10 times. For the next step I wrote a small program in c++:

Code: Select all

#include <iostream>
using namespace std;

int main()
{
double x = 0;

for (int i =0; i<125;i++)
{
x = x + (10000000/(i+1));
cout << "Nach dem " << i << " Durchlauf hat er " << x << " eingenommen \n";
}
for (int i =0; i<11;i++)
{
x = x + (10000000*(i+1));
cout << "Nach dem " << i << " Durchlauf hat er " << x << " eingenommen \n";
}
return 0;
}
(it isn't final and the text is a kind of debug message wrote in written German)

At the end this program calculated Malivox capital to 714095000gp.

I think there must be at least one bug in the code but at the moment I can't found them.


[sorry for my bad english, i am still learning the language]

Re: How much money earned Malivox?

Posted: 13 Aug 2008, 19:57
by Shaggy
If you want to do it accurately, use ints, not doubles - the server works in integers.

Re: How much money earned Malivox?

Posted: 13 Aug 2008, 20:10
by Crush
Your error is that you got the cost of the second reset wrong. The cost of the second reset is one million * number of uses, your program uses ten million * number of uses.

When you correct this error you get the correct result of 120.095.189 GP

Re: How much money earned Malivox?

Posted: 13 Aug 2008, 20:23
by Platyna
Cool info messages in German.

Regards.

Re: How much money earned Malivox?

Posted: 13 Aug 2008, 20:26
by kr0n05931
Atleast it's in the same language family as English. :lol:

Re: How much money earned Malivox?

Posted: 13 Aug 2008, 20:27
by fate
Hi,

note that Malivox, too, was reset at one point, so those numbers represent only partial information.

-- fate

Re: How much money earned Malivox?

Posted: 16 Aug 2008, 10:54
by Turmfalke
@Crush: Ah thx that is it.

120mio is still a really impressive amount of money for me it looks like Malivox is set for life.

@Fate: that's bad but I don't think there is anything I could do.