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.
User avatar
got tonkaed
Posts: 5034
Joined: Wed Nov 29, 2006 9:01 pm
Location: Detroit

Post by got tonkaed »

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.
Russianfire8371
Posts: 847
Joined: Wed Dec 13, 2006 5:47 pm

Post by Russianfire8371 »

Economic Left/Right: -2.75
Social Libertarian/Authoritarian: -4.51
Image
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
jecko7
Posts: 164
Joined: Wed Jun 27, 2007 2:09 pm
Gender: Male
Location: I'm lost in your eyes.

Post by jecko7 »

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
hecter
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Gender: Female
Location: Tying somebody up on the third floor
Contact:

Post by hecter »

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
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
JDodge
Posts: 40
Joined: Wed Nov 21, 2007 4:48 pm
Location: Daytona Beach

Post by JDodge »

What sort of calculations does this use, anyways? Is it something that could be done by hand?
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
jecko7
Posts: 164
Joined: Wed Jun 27, 2007 2:09 pm
Gender: Male
Location: I'm lost in your eyes.

Post by jecko7 »

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
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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:
Hanul
Posts: 81
Joined: Sun Feb 18, 2007 8:23 pm

Post by Hanul »

http://politicalcompass.org/test
Economic Left/Right: -3.50
Social Libertarian/Authoritarian: -5.18
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
unriggable
Posts: 8037
Joined: Thu Feb 08, 2007 9:49 pm

Post by unriggable »

Image
Image
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

unriggable wrote:Image


Thank you, finally someone with information! :D
User avatar
Napoleon Ier
Posts: 2299
Joined: Mon Jul 30, 2007 11:33 am
Location: Exploiting the third world's genetic plant resources.

Post by Napoleon Ier »

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
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
muy_thaiguy
Posts: 12727
Joined: Fri May 18, 2007 12:20 pm
Gender: Male
Location: Back in Black
Contact:

Post by muy_thaiguy »

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
MeDeFe
Posts: 7831
Joined: Thu Apr 06, 2006 3:48 am
Location: Follow the trail of holes in other people's arguments.

Post by MeDeFe »

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
Napoleon Ier
Posts: 2299
Joined: Mon Jul 30, 2007 11:33 am
Location: Exploiting the third world's genetic plant resources.

Post by Napoleon Ier »

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
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
Napoleon Ier
Posts: 2299
Joined: Mon Jul 30, 2007 11:33 am
Location: Exploiting the third world's genetic plant resources.

Post by Napoleon Ier »

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

Dieu et mon Pays.
User avatar
InkL0sed
Posts: 2370
Joined: Sat Jun 23, 2007 5:06 pm
Gender: Male
Location: underwater
Contact:

Post by InkL0sed »

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
unriggable
Posts: 8037
Joined: Thu Feb 08, 2007 9:49 pm

Post by unriggable »

FYI I was somewhere in the -6, -2 area. I really don't want to take it again.
Image
User avatar
got tonkaed
Posts: 5034
Joined: Wed Nov 29, 2006 9:01 pm
Location: Detroit

Post by got tonkaed »

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.
Post Reply

Return to “Acceptable Content”