-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelection.clj
executable file
·45 lines (33 loc) · 1.12 KB
/
election.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#This is the first test of the election ideas
#You get politicians
#Characteristice:
#Charisma - Can be improved by spending money on better speech writers
#Familiarity - Can be improved by spending money on more advertisinug
#Issues - Can be improved by hiring better epxerts
#Orthodoxy - Cannot be changed
#Politicians can also spend money on:
#Look for scandal - counter to charisma
#Attach Ads - counter to issues
#Voters have a weighted preference for each of the three characteristics modified by any negative attacks from the opponten and improved by matching orthodoxy.
#Thin Vertical Slice
#Build a Voter
#Collect 10 Voters
#Build a Politician
#Collect 2 Politicians
#run an election with voters and politician
#Declare a winner
(defn build_voter
"This function generates a voter"
)
(defn build_electorate
"This function creates a list of voters"
)
(defn build_politician
"This function creates a random politician"
)
(defn build_ballot
"This function creates a list of politicians"
)
(defn election
"This function takes a ballot and an electorate and determines the winner"
)