Apologies! You are using an outdated browser which lacks required capabilities. Please upgrade your browser to improve your experience.
Initializing. Please wait…
Let’s hold a vote!
But what kind of vote?
[[Yay or nay on a motion.|YONWriteMotion]]
[[A vote between two options.|TwoOptWriteOptions]]
[[A vote between three options.|ThreeOptWriteOptions]]<<set $MotionYayCount to 0>><<set $MotionNayCount to 0>>What motion do you want people to vote yay or nay on?
<<textbox "$Motion" "" "YONVoting" autofocus>>
Make sure to make it a clear “yes” or “no” question.
Hit the “Return/Enter” button after typing the motion (or [[click here|YONVoting]]) to start voting!<<set $OptionACount to 0>><<set $OptionBCount to 0>>If you want a question to set up the two options (like “Who’s your favorite superhero?”), type it here:
<<textbox "$TwoOptQuestion" "" autofocus>>
(If the two options don’t need a question for context, leave the above blank.)
What are the options you want people to vote between?
Option One:
<<textbox "$FirstOption" "">>
Option Two:
<<textbox "$SecondOption" "" "TwoOptVoting">>
Hit the “Return/Enter” button after typing the two options (or [[click here|TwoOptVoting]]) to start voting!<<set $OptionACount to 0>><<set $OptionBCount to 0>><<set $OptionCCount to 0>>If you want a question to set up the three options (like “Who’s your favorite superhero?”), type it here:
<<textbox "$ThreeOptQuestion" "" autofocus>>
(If the three options don’t need a question for context, leave the above blank.)
What are the options you want people to vote between?
Option One:
<<textbox "$FirstOption" "">>
Option Two:
<<textbox "$SecondOption" "">>
Option Three:
<<textbox "$ThirdOption" "" "ThreeOptVoting">>
Hit the “Return/Enter” button after typing the three options (or [[click here|ThreeOptVoting]]) to start voting!This is the motion you’re voting on:
$Motion
What’s your vote?
[[Yay|YONYayVote]]
[[Nay|YONNayVote]]<<set $MotionYayCount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|YONVoting]].
If the voting is all finished, [[click here|YONFinish]].<<set $MotionNayCount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|YONVoting]].
If the voting is all finished, [[click here|YONFinish]].<<set $MotionTotalCount to $MotionYayCount>><<set $MotionTotalCount += $MotionNayCount>>This is the motion everyone voted on:
$Motion
And here’s the final vote tally:
Yays: $MotionYayCount
Nays: $MotionNayCount
Total vote count: $MotionTotalCount
<<if $MotionYayCount eq $MotionNayCount>>It’s a tie!<<else>><<if $MotionYayCount gt $MotionNayCount>>The Yays have it!<<else>>The Nays have it!<</if>><</if>>
Vote on something new by [[clicking here|Start]].<<if $TwoOptQuestion isnot "">>$TwoOptQuestion<html><br><br></html><<else>><</if>>$FirstOption
- or -
$SecondOption
Which do you vote for?
[[$FirstOption|TwoOptVoteA]]
[[$SecondOption|TwoOptVoteB]]<<set $OptionACount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|TwoOptVoting]].
If the voting is all finished, [[click here|TwoOptFinish]].<<set $OptionBCount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|TwoOptVoting]].
If the voting is all finished, [[click here|TwoOptFinish]].<<if $TwoOptQuestion isnot "">>Here’s the question:
$TwoOptQuestion<html><br><br></html><<else>><</if>><<set $TwoOptTotalCount to $OptionACount>><<set $TwoOptTotalCount += $OptionBCount>>$FirstOption
- or -
$SecondOption
The final tally:
$FirstOption: $OptionACount votes
$SecondOption: $OptionBCount votes
Total vote count: $TwoOptTotalCount votes
<<if $OptionACount eq $OptionBCount>>It’s a tie!<<else>><<if $OptionACount gt $OptionBCount>>“$FirstOption” is the winner!<<else>>“$SecondOption” is the winner!<</if>><</if>>
Vote on something new by [[clicking here|Start]].<<if $ThreeOptQuestion isnot "">>$ThreeOptQuestion<html><br><br></html><<else>><</if>>$FirstOption
- or -
$SecondOption
- or -
$ThirdOption
Which do you vote for?
[[$FirstOption|ThirdOptVoteA]]
[[$SecondOption|ThirdOptVoteB]]
[[$ThirdOption|ThirdOptVoteC]]<<set $OptionACount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|ThreeOptVoting]].
If the voting is all finished, [[click here|ThreeOptFinish]].<<set $OptionBCount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|ThreeOptVoting]].
If the voting is all finished, [[click here|ThreeOptFinish]].<<set $OptionCCount += 1>>Your vote has been counted!
If the next person is now going to vote, [[click here|ThreeOptVoting]].
If the voting is all finished, [[click here|ThreeOptFinish]].<<if $ThreeOptQuestion isnot "">>Here’s the question:
$ThreeOptQuestion<html><br><br></html><<else>><</if>><<set $ThreeOptTotalCount to $OptionACount>><<set $ThreeOptTotalCount += $OptionBCount>><<set $ThreeOptTotalCount += $OptionCCount>>$FirstOption
- or -
$SecondOption
- or -
$ThirdOption
The final tally:
$FirstOption: $OptionACount votes
$SecondOption: $OptionBCount votes
$ThirdOption: $OptionCCount votes
Total vote count: $ThreeOptTotalCount votes
<<if $OptionACount eq $OptionBCount and $OptionBCount eq $OptionCCount>>It’s a tie!<<else>><<set $WinningAmount to Math.max($OptionACount, $OptionBCount, $OptionCCount)>><<if $WinningAmount eq $OptionACount and $OptionACount neq $OptionBCount and $OptionACount neq $OptionCCount>>“$FirstOption” is the winner!<<else>><<if $WinningAmount eq $OptionBCount and $OptionBCount neq $OptionCCount and $OptionBCount neq $OptionACount>>“$SecondOption” is the winner!<<else>><<if $WinningAmount eq $OptionCCount and $OptionCCount neq $OptionACount and $OptionCCount neq $OptionBCount>>“$ThirdOption” is the winner!<<else>>There’s a tie for first place!<</if>><</if>><</if>><</if>>
Vote on something new by [[clicking here|Start]].$FirstOption
Tracks what the user enters as the first option to vote on in both two- and three-option voting.
Values:
[user defined]
$Motion
Tracks what the user enters as the motion to be voted on.
Values:
[user defined]
$MotionYayCount
Tracks how many yays the motion gets.
Values:
[number]
$MotionNayCount
Tracks how many nays the motion gets.
Values:
[number]
$MotionTotalCount
Tracks the total votes for the motion (to keep voting honest).
Values:
[number]
$OptionACount
Tracks the votes for Option A in both two- and three-option voting.
Values:
[number]
$OptionBCount
Tracks the votes for Option B in both two- and three-option voting.
Values:
[number]
$OptionCCount
Tracks the votes for Option C in both two- and three-option voting.
Values:
[number]
$SecondOption
Tracks what the user enters as the second option to vote on in both two- and three-option voting.
Values:
[user defined]
$ThirdOption
Tracks what the user enters as the third option to vote on in both two- and three-option voting.
Values:
[user defined]
$ThreeOptQuestion
Tracks what the user enters as the question in three-option voting.
Values:
[user defined]
$ThreeOptTotalCount
Tracks the total votes for three-option voting (to keep voting honest).
Values:
[number]
$TwoOptQuestion
Tracks what the user enters as the question in two-option voting.
Values:
[user defined]
$TwoOptTotalCount
Tracks the total votes for two-option voting (to keep voting honest).
Values:
[number]