Conquer Club

Simulated Election

\\OFF-TOPIC// conversations about everything that has nothing to do with Conquer Club.

Moderator: Community Team

Forum rules
Please read the Community Guidelines before posting.

Postby got tonkaed on Fri Jan 25, 2008 9:05 pm

InkL0sed wrote:
got tonkaed wrote:indeed i wouldnt really stand a chance of beating anyone except for maybe napoleon.


At least it wasn't a landslide. Also, running it again gave you one more vote, if that's any consolation.


eek. i cant even win a recount.
User avatar
Cadet got tonkaed
 
Posts: 5034
Joined: Wed Nov 29, 2006 9:01 pm
Location: Detroit

Postby Russianfire8371 on Fri Jan 25, 2008 9:54 pm

Economic Left/Right: -2.75
Social Libertarian/Authoritarian: -4.51
Image
Corporal Russianfire8371
 
Posts: 847
Joined: Wed Dec 13, 2006 5:47 pm

Postby InkL0sed on Fri Jan 25, 2008 10:13 pm

Enter name of first candidate: jecko7

Enter name of second candidate: Russianfire8371

Enter social standing of first candidate(on a scale of -10 to 10)0

Enter economic standing of first candidate(on a scale of -10 to 10)6

Enter social standing of second candidate(on a scale of -10 to 10)-5

Enter economic standing of second candidate(on a scale of -10 to 10)-3
jecko7 (6.0, 0.0): 9 votes
Russianfire8371 (-3.0, -5.0): 10 votes
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby jecko7 on Fri Jan 25, 2008 10:24 pm

This vote is complete crap! I demand a recount! :P

Can't you just change the variables for social standing into doubles and then multiply the votes by 1000 or something to get whole numbers for them? Or is my limited knowledge of java way off?
User avatar
Captain jecko7
 
Posts: 164
Joined: Wed Jun 27, 2007 1:09 pm
Location: I'm lost in your eyes.

Postby hecter on Fri Jan 25, 2008 10:27 pm

jecko7 wrote:This vote is complete crap! I demand a recount! :P

Can't you just change the variables for social standing into doubles and then multiply the votes by 1000 or something to get whole numbers for them? Or is my limited knowledge of java way off?

It's my understanding of programming that if you try to give an integer variable a noninteger input it will either bug out then and there or will just ignore the decimals.
In heaven... Everything is fine, in heaven... Everything is fine, in heaven... Everything is fine... You got your things, and I've got mine.
Image
User avatar
Private 1st Class hecter
 
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Location: Tying somebody up on the third floor

Postby InkL0sed on Fri Jan 25, 2008 10:31 pm

I could actually easily make them doubles:

public void setCors(int t, int k){
soc = (double)t;
econ = (double)k;
}

I just made the input integers cause I wasn't sure it would accept it if I entered 1 instead of 1.0. I should go change that...
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby JDodge on Fri Jan 25, 2008 10:34 pm

What sort of calculations does this use, anyways? Is it something that could be done by hand?
User avatar
Private 1st Class JDodge
 
Posts: 40
Joined: Wed Nov 21, 2007 4:48 pm
Location: Daytona Beach

Postby InkL0sed on Fri Jan 25, 2008 10:37 pm

Just the distance formula.

d = (x^2 + y^2)^(1/2)

public double calcDiff(Politician p){
double d = 0.0;
double x = Math.abs(p.getEcon() - getEcon());
double y = Math.abs(p.getSoc() - getSoc());
d = Math.abs(Math.sqrt(x * x + y * y));
return d;
}

So yes, you could do this by hand.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby jecko7 on Fri Jan 25, 2008 10:38 pm

I'm interested in the formula for the votes from the economic/social scores as well. Are you taking actual statistics (e.g. opinion polls), or did you just make up a formula?

Either way, this is a pretty cool idea.

EDIT - beat me to it :)
User avatar
Captain jecko7
 
Posts: 164
Joined: Wed Jun 27, 2007 1:09 pm
Location: I'm lost in your eyes.

Postby InkL0sed on Fri Jan 25, 2008 10:44 pm

jecko7 wrote:I'm interested in the formula for the votes from the economic/social scores as well. Are you taking actual statistics (e.g. opinion polls), or did you just make up a formula?

Either way, this is a pretty cool idea.

EDIT - beat me to it :)


I may as well explain how everything works, since I'm getting so many questions :P

There are three classes: Election, Politician, and Voter. The Election just runs everything, it isn't very important.

Both Voters and Politicians have political coordinates. The Voter's coordinates are random. The Voter simply finds the Politician which has closer coordinates, and adds +1 to the votes variable in Politician.

public double calcDiff(Politician p){
double d = 0.0;
double x = Math.abs(p.getEcon() - getEcon());
double y = Math.abs(p.getSoc() - getSoc());
d = Math.abs(Math.sqrt(x * x + y * y));
return d;
}

public void Decide(Politician one, Politician two){
if(calcDiff(one) > calcDiff(two)){
two.votes++;
}
else if(calcDiff(one) < calcDiff(two)){
one.votes++;
}
else{}
}

I hope that answers everything :D

EDIT: Didn't see your edit :lol:
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby Hanul on Fri Jan 25, 2008 11:05 pm

http://politicalcompass.org/test
Economic Left/Right: -3.50
Social Libertarian/Authoritarian: -5.18
Sergeant 1st Class Hanul
 
Posts: 81
Joined: Sun Feb 18, 2007 8:23 pm

Postby InkL0sed on Sat Jan 26, 2008 1:01 pm

I changed the code while playing around with it, and now it doesn't work :oops:

When I fix it I'll run you against whoever it was that won last time (can't remember if that was jecko or Russianfire
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby unriggable on Sat Jan 26, 2008 1:02 pm

Image
Image
User avatar
Cook unriggable
 
Posts: 8037
Joined: Thu Feb 08, 2007 9:49 pm

Postby InkL0sed on Sat Jan 26, 2008 1:07 pm

unriggable wrote:Image


Thank you, finally someone with information! :D
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby Napoleon Ier on Sat Jan 26, 2008 1:48 pm

got tonkaed wrote:indeed i wouldnt really stand a chance of beating anyone except for maybe napoleon.


lets run it;

Right by 8 pts ( +8 )

Libertarian by only 1 ( -1 )
Le Roy est mort: Vive le Roy!

Dieu et mon Pays.
User avatar
Cadet Napoleon Ier
 
Posts: 2299
Joined: Mon Jul 30, 2007 10:33 am
Location: Exploiting the third world's genetic plant resources.

Postby InkL0sed on Sat Jan 26, 2008 1:52 pm

Mike Gravel: 7
Dennis Kucinich: 12

Dennis Kucinich: 11
John Edwards: 8

Dennis Kucinich: 14
Joe Biden: 5

Dennis Kucinich: 13
Barack Obama: 6

Dennis Kucinich: 9
Hillary Clinton: 10

More to come later.

–––

:shock: :shock:

That's all I have to express. I did each one at least twice, and I got more or less the same results each time. Hillary beat Kucinich by 1 vote twice! By the time I was running that one, I was expecting Kucinich to beat her almost as badly as Obama.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby muy_thaiguy on Sat Jan 26, 2008 1:55 pm

Your political compass
Economic Left/Right: 7.25
Social Libertarian/Authoritarian: 4.31
"Eh, whatever."
-Anonymous


What, you expected something deep or flashy?
User avatar
Private 1st Class muy_thaiguy
 
Posts: 12727
Joined: Fri May 18, 2007 11:20 am
Location: Back in Black

Postby MeDeFe on Sat Jan 26, 2008 2:10 pm

InkL0sed wrote:Mike Gravel: 7
Dennis Kucinich: 12

Dennis Kucinich: 11
John Edwards: 8

Dennis Kucinich: 14
Joe Biden: 5

Dennis Kucinich: 13
Barack Obama: 6

Dennis Kucinich: 9
Hillary Clinton: 10

More to come later.

–––

:shock: :shock:

That's all I have to express. I did each one at least twice, and I got more or less the same results each time. Hillary beat Kucinich by 1 vote twice! By the time I was running that one, I was expecting Kucinich to beat her almost as badly as Obama.

If you'd run them all at once Gravel and Kucinich would probably stand the best chances, simply because there's less competition for votes in that area of the field, RP might also stand a chance, he's not quite a part of the big field.

And for the record, my results from this test.
Economic Left/Right: -3.38
Social Libertarian/Authoritarian: -8.00


Slightly more to the economic left than the last time, but still as libertarian as ever. Too bad they don't phrase all questions very clearly, there's a lot of wiggle room in some of them.
saxitoxin wrote:Your position is more complex than the federal tax code. As soon as I think I understand it, I find another index of cross-references, exceptions and amendments I have to apply.
Timminz wrote:Yo mama is so classless, she could be a Marxist utopia.
User avatar
Major MeDeFe
 
Posts: 7831
Joined: Thu Apr 06, 2006 2:48 am
Location: Follow the trail of holes in other people's arguments.

Postby Napoleon Ier on Sat Jan 26, 2008 2:15 pm

Frankly I think that test is entirely idiotic. It's pseudo-revolutionnary and overly simplistic as a politicometric tool. You can't transpose something as complex as a political spectrum onto their appalling criteria ("more liberty" is associated with libertarianism, but that is dissociated from economic policy) and what's more their awfully worded questions. "Do you think astrology accurately predicts things?" If you do, there should frankly be an extra besotted little urbanite teenage girl dimension.
Last edited by Napoleon Ier on Sat Jan 26, 2008 2:22 pm, edited 1 time in total.
Le Roy est mort: Vive le Roy!

Dieu et mon Pays.
User avatar
Cadet Napoleon Ier
 
Posts: 2299
Joined: Mon Jul 30, 2007 10:33 am
Location: Exploiting the third world's genetic plant resources.

Postby InkL0sed on Sat Jan 26, 2008 2:17 pm

Enter name of first candidate: got tonkaed

Enter name of second candidate: Napoleon

Enter social standing of first candidate(on a scale of -10 to 10)-8

Enter economic standing of first candidate(on a scale of -10 to 10)-6

Enter social standing of second candidate(on a scale of -10 to 10)-1

Enter economic standing of second candidate(on a scale of -10 to 10)8
got tonkaed(-6.0, -8.0): 8
Napoleon(8.0, -1.0): 11
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby InkL0sed on Sat Jan 26, 2008 2:20 pm

Gosh you guys are all so left wing :lol:

Enter name of first candidate: Russianfire

Enter name of second candidate: Hanul

Enter social standing of first candidate(on a scale of -10 to 10)-5.18

Enter economic standing of first candidate(on a scale of -10 to 10)-3.0

Enter social standing of second candidate(on a scale of -10 to 10)-4.51

Enter economic standing of second candidate(on a scale of -10 to 10)-2.75
Russianfire(-3.0, -5.18 ): 6
Hanul(-2.75, -4.51): 13

Enter name of first candidate: Hanul

Enter name of second candidate: muy thaiguy

Enter social standing of first candidate(on a scale of -10 to 10)-4.51

Enter economic standing of first candidate(on a scale of -10 to 10)-2.75

Enter social standing of second candidate(on a scale of -10 to 10)4.31

Enter economic standing of second candidate(on a scale of -10 to 10)7.25
Hanul(-2.75, -4.51): 10
muy thaiguy(7.25, 4.31): 9
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby Napoleon Ier on Sat Jan 26, 2008 2:23 pm

:shock: Whadja have to say to that now tonky my son?
Le Roy est mort: Vive le Roy!

Dieu et mon Pays.
User avatar
Cadet Napoleon Ier
 
Posts: 2299
Joined: Mon Jul 30, 2007 10:33 am
Location: Exploiting the third world's genetic plant resources.

Postby InkL0sed on Sat Jan 26, 2008 2:25 pm

Napoleon Ier wrote::shock: Whadja have to say to that now tonky my son?


You're actually relatively moderate compared to him :lol:
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Postby unriggable on Sat Jan 26, 2008 2:27 pm

FYI I was somewhere in the -6, -2 area. I really don't want to take it again.
Image
User avatar
Cook unriggable
 
Posts: 8037
Joined: Thu Feb 08, 2007 9:49 pm

Postby got tonkaed on Sat Jan 26, 2008 2:28 pm

i cant believe i cant beat napoelon in an election.
Last edited by got tonkaed on Sat Jan 26, 2008 2:28 pm, edited 1 time in total.
User avatar
Cadet got tonkaed
 
Posts: 5034
Joined: Wed Nov 29, 2006 9:01 pm
Location: Detroit

PreviousNext

Return to Practical Explanation about Next Life,

Who is online

Users browsing this forum: GaryDenton