-
Notifications
You must be signed in to change notification settings - Fork 0
/
difficulties.go
79 lines (73 loc) · 1.91 KB
/
difficulties.go
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
package main
import "time"
type difficulty struct {
visibleName string
startDelay time.Duration
hideTimes time.Duration
correctGuessPoints int
invalidKeyPressPenality int
rowCount int
columnCount int
runePools [][]rune
}
var difficulties = []*difficulty{
{
visibleName: "easy",
correctGuessPoints: 5,
//You better take easy seriously!
invalidKeyPressPenality: 4,
rowCount: 3,
columnCount: 2,
startDelay: 750 * time.Millisecond,
hideTimes: 1250 * time.Millisecond,
runePools: [][]rune{
runeRange('1', '6'),
},
}, {
visibleName: "normal",
correctGuessPoints: 5,
invalidKeyPressPenality: 2,
rowCount: 3,
columnCount: 3,
startDelay: 1500 * time.Millisecond,
hideTimes: 1250 * time.Millisecond,
runePools: [][]rune{
runeRange('0', '9'),
},
}, {
visibleName: "hard",
correctGuessPoints: 5,
invalidKeyPressPenality: 5,
rowCount: 3,
columnCount: 3,
startDelay: 1500 * time.Millisecond,
hideTimes: 1500 * time.Millisecond,
runePools: [][]rune{
runeRange('a', 'z'),
},
}, {
visibleName: "extreme",
correctGuessPoints: 4,
invalidKeyPressPenality: 5,
rowCount: 4,
columnCount: 3,
startDelay: 1500 * time.Millisecond,
hideTimes: 1500 * time.Millisecond,
runePools: [][]rune{
runeRange('0', '9'),
runeRange('a', 'z'),
},
}, {
visibleName: "nightmare",
correctGuessPoints: 4,
invalidKeyPressPenality: 10,
rowCount: 5,
columnCount: 5,
startDelay: 2500 * time.Millisecond,
hideTimes: 1500 * time.Millisecond,
runePools: [][]rune{
runeRange('0', '9'),
runeRange('a', 'z'),
},
},
}