> I'm sure Peli can come up with a mathematical formula for finding out the
> winners ;)

I wanted to keep it secret, cause it may be shocking for some, but
here it is: :-)

double points = 0;
for (judge in judgeList) {
  originality = getValidPoints(10);
  effectiveUse = getValidPoints(10);
  polishAndAppeal = getValidPoints(10);
  indispensability = getValidPoints(10);
  points += (originality + effectiveUse + polishAndAppeal +
indispensability) * 0.25;
}
points /= judgeList.length();
assert 0.0 <= points && points <= 10.0;
Log.i(TAG, points);

double getValidPoints(double max) {
  return max * Math.random();
}

Peli
(PS: Just meant as a joke, not as an offense! I'm sure the judges are
doing their best! :-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Challenge" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-challenge?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to