-
Notifications
You must be signed in to change notification settings - Fork 5
/
constants.go
24 lines (21 loc) · 854 Bytes
/
constants.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
package camp
const (
emptyValue int = iota
treeValue
tentValue
)
const (
percentageOfTrees float64 = 0.20 // The maximum number of trees as a percentage of the total number of cells in the field.
minSideSize int = 5
maxSideSize int = 15
)
// Error constant
const (
tooLargeFieldSize string = "the field size is too large"
tooSmallFieldSize string = "the field size is too small"
incorrectRowTents string = "incorrect data for the number of tents in the rows"
incorrectColumnTents string = "incorrect data for the number of tents in the columns"
wrongRowTents string = "the number of tents in each row must match the assignment"
wrongColumnTents string = "the number of tents in each column must match the assignment"
wrongTentPosition string = "there should be no other tents around the tent"
)