Skip to content

Commit

Permalink
Merge pull request #2 from paretoman/gh-pages
Browse files Browse the repository at this point in the history
strategy stuff
  • Loading branch information
jamesonquinn authored Aug 2, 2017
2 parents ed2a6a3 + 12cb84b commit 5afa83f
Show file tree
Hide file tree
Showing 24 changed files with 611 additions and 168 deletions.
90 changes: 62 additions & 28 deletions newer.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,20 @@ <h2 class="ballot_title" style="margin-bottom: 0.15em;">Strong Strategic Voter</


</div>
<div class="sim-ballot">
<div class="sim-test">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<p class="caption-test">
Also, here's a score example<br>
</p>
<iframe src="play/election9.html" width="800" height="440" scrolling="no"></iframe>

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
</div>
<div class="sim-test">

<p class="caption-test">
Playing Chicken<br>
</p>
<iframe src="play/election10.html" width="800" height="440" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -206,12 +214,20 @@ <h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>


</div>
<div class="sim-ballot">
<div class="sim-test">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<p class="caption-test">
Playing Chicken with Different Methods<br>
</p>
<iframe src="play/election11.html" width="800" height="440" scrolling="no"></iframe>

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
</div>
<div class="sim-test">

<p class="caption-test">
Center Squeeze<br>
</p>
<iframe src="play/election12.html" width="800" height="440" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -227,10 +243,10 @@ <h1>Star voting</h1>
</div>
<div class="sim-ballot">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<h2 class="ballot_title" style="margin-bottom: 0.15em;">Star Strong</h2>
<p class="ballot_caption">Keeps a space for the best.</p>

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
<iframe src="play/ballot9.html" width="655" height="256" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -240,12 +256,12 @@ <h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p>And here's the chicken dilemma you saw above:</p>

</div>
<div class="sim-ballot">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<div class="sim-test">

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
<p class="caption-test">
Chicken Star<br>
</p>
<iframe src="play/election13.html" width="800" height="440" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -259,10 +275,10 @@ <h1>3-2-1 voting</h1>
</div>
<div class="sim-ballot">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<h2 class="ballot_title" style="margin-bottom: 0.15em;">321 Strategic</h2>
<p class="ballot_caption">Approval with an extra level.</p>

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
<iframe src="play/ballot10.html" width="655" height="256" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -272,12 +288,12 @@ <h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p>And here's the chicken dilemma. Note "moderately strategic" doesn't change the result from "normalized". So unlike in star voting, candidates wouldn't have to go negative against their nearby rivals in order to ensure that their voters would at least be moderately strategic and wouldn't just normalize.</p>

</div>
<div class="sim-ballot">

<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
<div class="sim-test">

<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
<p class="caption-test">
321 Chicken<br>
</p>
<iframe src="play/election14.html" width="800" height="440" scrolling="no"></iframe>

</div>
<div class="words">
Expand All @@ -287,15 +303,33 @@ <h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p>Putting it all together, here's a sandbox for you to try out all the different systems and to make your own scenarios:</p>

</div>
<div class="sim-ballot">

<!-- - - - - - - - -
<h2 class="ballot_title" style="margin-bottom: 0.15em;">UNSTRATEGIC BALLOT</h2>
<p class="ballot_caption">Judge, don't choose.</p>
PART IV:
SANDBOX
<iframe src="play/ballot4.html" width="655" height="256" scrolling="no"></iframe>
- - - - - - - - - -->

<div id="sandbox">
<div class="sim-sandbox">
<h1 class="caption-test" style="margin: 30px 0 15px 0;">SANDBOX MODE! <a href="sandbox">(link to <em>just</em> this)</a></h1>
<iframe src="sandbox/sandbox.html" width="802" height="508" scrolling="no"></iframe>
</div>
<div class="words">
<p>
One hope for Sandbox Mode is that readers can debate with me and each other <em>using</em> this tool!
Not just telling me I'm wrong, but <em>showing</em> me I'm wrong.
For example –
<a href="sandbox?m=%7B%22s%22%3A%22FPTP%22%2C%22v%22%3A%5B%5B54%2C147%5D%2C%5B54%2C72%5D%2C%5B249%2C109%5D%5D%2C%22c%22%3A%5B%5B54%2C227%5D%2C%5B249%2C106%5D%5D%2C%22d%22%3A%22This%20is%20the%20biggest%20challenge%20to%20Approval%2FScore%2C%20IMHO.%20Below%3A%202%2F3%20of%20voters%20dislike%20both%20candidates%2C%20but%20dislike%20Square%20slightly%20less.%20However%2C%201%2F3%20of%20voters%20LOVE%20Triangle%20and%20HATE%20Square.%20Under%20FPTP%2C%20IRV%20%26%20Condorcet%2C%20Square%20wins%2C%20coz%20a%20majority%20of%20voters%20barely%20prefer%20him.%20But%20under%20Approval%20%26%20Score%2C%20Triangle%20wins%2C%20coz%20she's%20intensely%20loved%20by%20her%20minority.%20Now%2C%20is%20this%20OKAY%3F%20Is%20this%20a%20betrayal%20of%20democracy%2C%20or%20actually%20*saving*%20democracy%20from%20a%20tyranny%20of%20the%20majority%3F%20This%20question's%20not%20just%20theoretical%2C%20it's%20*philosophical*.%22%7D">
here's a model I made in Sandbox Mode,
showing an interesting argument <em>against</em> Approval &amp; Score Voting</a>.
Granted, this tool is very limited – it doesn't handle strategic voting or imperfect information –
but I think it's a start, and may help improve our Democratic Discourse&trade;
</p>
</div>
</div>
<div class="words">



Expand Down
27 changes: 27 additions & 0 deletions play/ballot10.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/model.css">
<link rel="stylesheet" type="text/css" href="css/ballot.css">
</head>
<body></body>
</html>

<script src="js/helpers.js"></script>
<script src="js/minpubsub.js"></script>
<script src="js/Loader.js"></script>
<script src="js/Mouse.js"></script>
<script src="js/Draggable.js"></script>
<script src="js/Model.js"></script>
<script src="js/Candidate.js"></script>
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Ballot.js"></script>

<script src="js/main_ballot.js"></script>
<script>main({
system: "Three",
strategy: "starnormfrontrunners",
frontrunners: ["square","hexagon"]
});</script>
27 changes: 27 additions & 0 deletions play/ballot9.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/model.css">
<link rel="stylesheet" type="text/css" href="css/ballot.css">
</head>
<body></body>
</html>

<script src="js/helpers.js"></script>
<script src="js/minpubsub.js"></script>
<script src="js/Loader.js"></script>
<script src="js/Mouse.js"></script>
<script src="js/Draggable.js"></script>
<script src="js/Model.js"></script>
<script src="js/Candidate.js"></script>
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Ballot.js"></script>

<script src="js/main_ballot.js"></script>
<script>main({
system: "Score",
strategy: "starnormfrontrunners",
frontrunners: ["square","hexagon"]
});</script>
1 change: 1 addition & 0 deletions play/election1.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Buttons.js"></script>
<script src="js/seedrandom.min.js"></script>

<script src="js/main_sandbox.js"></script>
<script>
Expand Down
49 changes: 49 additions & 0 deletions play/election10.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/model.css">
<link rel="stylesheet" type="text/css" href="css/election.css">
</head>
<body>
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</body>
</html>

<script src="js/helpers.js"></script>
<script src="js/minpubsub.js"></script>
<script src="js/Loader.js"></script>
<script src="js/Mouse.js"></script>
<script src="js/Draggable.js"></script>
<script src="js/Model.js"></script>
<script src="js/Candidate.js"></script>
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Buttons.js"></script>
<script src="js/seedrandom.min.js"></script>

<script src="js/main_sandbox.js"></script>
<script>
main({

features:3,
doPercentMiddle:true,
system: "Approval",

candidates: 3,
candidatePositions: [[150-25,150-20],
[150+20,150-20],
[150,150+75]],

voters: 3,
voterPositions: [[150,150+10],
[150,150-70],
[150,150+90]],
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"],
voterPercentStrategy: [100,100,100],
frontrunners: ['square','triangle','hexagon']

});
</script>
49 changes: 49 additions & 0 deletions play/election11.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/model.css">
<link rel="stylesheet" type="text/css" href="css/election.css">
</head>
<body>
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</body>
</html>

<script src="js/helpers.js"></script>
<script src="js/minpubsub.js"></script>
<script src="js/Loader.js"></script>
<script src="js/Mouse.js"></script>
<script src="js/Draggable.js"></script>
<script src="js/Model.js"></script>
<script src="js/Candidate.js"></script>
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Buttons.js"></script>
<script src="js/seedrandom.min.js"></script>

<script src="js/main_sandbox.js"></script>
<script>
main({

features:3,
doPercentMiddle:true,
system: "Approval",

candidates: 3,
candidatePositions: [[150-25,150-20],
[150+20,150-20],
[150,150+75]],

voters: 3,
voterPositions: [[150,150+10],
[150,150-70],
[150,150+90]],
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"],
voterPercentStrategy: [100,100,100],
frontrunners: ['square','triangle','hexagon']

});
</script>
50 changes: 50 additions & 0 deletions play/election12.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/model.css">
<link rel="stylesheet" type="text/css" href="css/election.css">
</head>
<body>
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</body>
</html>

<script src="js/helpers.js"></script>
<script src="js/minpubsub.js"></script>
<script src="js/Loader.js"></script>
<script src="js/Mouse.js"></script>
<script src="js/Draggable.js"></script>
<script src="js/Model.js"></script>
<script src="js/Candidate.js"></script>
<script src="js/Voters.js"></script>
<script src="js/Election.js"></script>
<script src="js/Buttons.js"></script>
<script src="js/seedrandom.min.js"></script>

<script src="js/main_sandbox.js"></script>
<script>
main({

features:3,
doPercentMiddle:true,
system: "IRV",

candidates: 4,
candidatePositions: [[150-25,150-20],
[150+20,150-20],
[150,150+75],
[150+0,150+10]],

voters: 3,
voterPositions: [[150,150+10],
[150,150-70],
[150,150+90]],
voterStrategies: ["normfrontrunners","normfrontrunners","normfrontrunners"],
voterPercentStrategy: [100,100,100],
frontrunners: ['square','triangle','hexagon']

});
</script>
Loading

0 comments on commit 5afa83f

Please sign in to comment.