-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmountains.go
More file actions
92 lines (81 loc) · 1.38 KB
/
Copy pathmountains.go
File metadata and controls
92 lines (81 loc) · 1.38 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package main
import (
"fmt"
"math"
)
// ***MOUNTAINS***
//
// 4710
func mountains() {
if M <= 950 {
settingDate() // 1230
return
}
if rnd(-1)*10 <= 9-(math.Pow((M/100-15), 2)+72)/(math.Pow((M/100-15), 2)+12) {
// 4730
fmt.Println("RUGGED MOUNTAINS")
if rnd(-1) > .1 { // 4740
if rnd(-1) > .11 { // 4780
// 4840
fmt.Println("THE GOING GETS SLOW")
M = M - 45 - rnd(-1)/.02
} else {
fmt.Println("WAGON DAMAGED!---LOSE TIME AND SUPPLIES")
M1 = M1 - 5
B = B - 200
M = M - 20 - 30*rnd(-1)
}
} else {
// 4750
fmt.Println("YOU GOT LOST---LOSE VALUABLE TIME TRYING TO FIND TRAIL!")
M = M - 60
}
}
// 4860
if F1 != 1 {
F1 = 1
if rnd(-1) < .8 {
blizzard()
return
} else {
fmt.Println("YOU MADE IT SAFELY THROUGH SOUTH PASS--NO SNOW")
}
}
// 4900
if M < 1700 {
mountainsSettingDate() // 4940
} else {
if F2 == 1 {
mountainsSettingDate() // 4940
} else {
F2 = 1
if rnd(-1) < .7 {
blizzard()
} else {
mountainsSettingDate() // 4940
}
}
}
}
// 4940
func mountainsSettingDate() {
if M <= 950 {
M9 = 1
}
settingDate()
}
// 4970
func blizzard() {
fmt.Println("BLIZZARD IN MOUNTAIN PASS--TIME AND SUPPLIES LOST")
L1 = 1
F = F - 25
M1 = M1 - 10
B = B - 300
M = M - 30 - 40*rnd(-1)
// 5030
if C < 18+2*rnd(-1) {
illnessSubRoutine() // 6300
} else {
mountainsSettingDate() // 4940
}
}