-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsts.go
More file actions
75 lines (72 loc) · 1.98 KB
/
consts.go
File metadata and controls
75 lines (72 loc) · 1.98 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
package main
type consts struct {
partialDnaRange [4]int
vonNeumannPerms [24][4][2]int
chartsInfo map[int]map[string]interface{}
}
type chartData struct {
Label string
X int
Y int
Offset int
}
var c = consts{
partialDnaRange: [4]int{2, 3, 4, 5},
vonNeumannPerms: [24][4][2]int{
{{1, 0}, {-1, 0}, {0, 1}, {0, -1}},
{{1, 0}, {-1, 0}, {0, -1}, {0, 1}},
{{1, 0}, {0, 1}, {-1, 0}, {0, -1}},
{{1, 0}, {0, 1}, {0, -1}, {-1, 0}},
{{1, 0}, {0, -1}, {-1, 0}, {0, 1}},
{{1, 0}, {0, -1}, {0, 1}, {-1, 0}},
{{-1, 0}, {1, 0}, {0, 1}, {0, -1}},
{{-1, 0}, {1, 0}, {0, -1}, {0, 1}},
{{-1, 0}, {0, 1}, {1, 0}, {0, -1}},
{{-1, 0}, {0, 1}, {0, -1}, {1, 0}},
{{-1, 0}, {0, -1}, {1, 0}, {0, 1}},
{{-1, 0}, {0, -1}, {0, 1}, {1, 0}},
{{0, 1}, {1, 0}, {-1, 0}, {0, -1}},
{{0, 1}, {1, 0}, {0, -1}, {-1, 0}},
{{0, 1}, {-1, 0}, {1, 0}, {0, -1}},
{{0, 1}, {-1, 0}, {0, -1}, {1, 0}},
{{0, 1}, {0, -1}, {1, 0}, {-1, 0}},
{{0, 1}, {0, -1}, {-1, 0}, {1, 0}},
{{0, -1}, {1, 0}, {-1, 0}, {0, 1}},
{{0, -1}, {1, 0}, {0, 1}, {-1, 0}},
{{0, -1}, {-1, 0}, {1, 0}, {0, 1}},
{{0, -1}, {-1, 0}, {0, 1}, {1, 0}},
{{0, -1}, {0, 1}, {1, 0}, {-1, 0}},
{{0, -1}, {0, 1}, {-1, 0}, {1, 0}},
},
chartsInfo: map[int]map[string]interface{}{
0: {
"type": "trait",
"charts": []chartData{
{"SPEED", 870, 75, 60},
{"BOWEL LENGTH", 870, 225, 37},
{"FAT LIMIT", 870, 375, 53},
{"LEGS LENGTH", 870, 525, 44},
},
},
1: {
"title": "HERBIVORES",
"type": "distribution",
"charts": []chartData{
{"SPEED DISTRIBUTION", 874, 88, 25},
{"BOWEL LENGTH DISTRIBUTION", 874, 238, -2},
{"FAT LIMIT DISTRIBUTION", 874, 388, 16},
{"LEGS LENGTH DISTRIBUTION", 874, 538, 5},
},
},
2: {
"title": "CARNIVORES",
"type": "distribution",
"charts": []chartData{
{"SPEED DISTRIBUTION", 874, 88, 25},
{"BOWEL LENGTH DISTRIBUTION", 874, 238, -2},
{"FAT LIMIT DISTRIBUTION", 874, 388, 16},
{"LEGS LENGTH DISTRIBUTION", 874, 538, 5},
},
},
},
}