forked from codelympics/go_game_jam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
52 lines (43 loc) · 770 Bytes
/
main.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
package main
const (
boardWidth = 8
boardHeight = 8
answersPerLevel = 10
playerLives = 3
startLevel = 1
squareWidth = 7
borderWidth = 1
offsetX = 1
squareOffsetX = 1
squareHeight = 3
borderHeight = 1
offsetY = 1
squareOffsetY = 1
playerChar = '옷'
foeChar = '@'
rules = `Rules:
옷 - you
@ - math police
Every level has math
problems to solve. Your
task is to find the
equations with result
equal to the level
number.
Each wrong try costs
you one live. Each level
gives you new live, and
bonus points equal to
the remaining lives.
Avoid the math police.
Control:
▲ - move up
▼ - move down
◀ - move left
▶ - move right
Space - select solution
Ctrl-C - exit game`
)
func main() {
NewGame().Run()
}