-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.kt
42 lines (40 loc) · 1.01 KB
/
Main.kt
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
import src.VOMSpread
import src.ZOMLog
import src.ZOMOdds
import src.ZOModel
fun main() {
println("Pick a model to run [ZOModel, ZOMLog, ZOMOdds, VOMSpread]:")
when (readln().lowercase()) {
"zomodel" -> {
val sim = ZOModel()
sim.togglePrinting()
sim.promptForInput()
sim.runCalc()
sim.printResults()
}
"zomlog" -> {
val sim = ZOMLog()
sim.togglePrinting()
sim.promptForInput()
sim.runCalc()
sim.printResults()
}
"zomodds" -> {
val sim = ZOMOdds()
sim.togglePrinting()
sim.promptForInput()
sim.runCalc()
sim.printResults()
}
"vomspread" -> {
val sim = VOMSpread()
sim.togglePrinting()
sim.promptForInput()
sim.runCalc()
sim.printResults()
}
else -> {
println("That is not an option.")
}
}
}