-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmakefile
50 lines (38 loc) · 851 Bytes
/
makefile
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
#-*- coding:utf-8 -*-
PYTHON?=python
all:
$(PYTHON) running.py
unittest:
$(PYTHON) srcs/map/map.py
$(PYTHON) srcs/game.py
$(PYTHON) srcs/game_controller.py
# $(PYTHON) srcs/ailib.py
# run the game server
game:
$(PYTHON) srcs/zmq_game_server.py local
webgame:
$(PYTHON) srcs/zmq_game_server.py web
# run the website
web:
cd website; bundle exec middleman
# run http interface server
http:
cd srcs; $(PYTHON) web_server.py
# run a test ai
ai:
$(PYTHON) examples/ai_halida.py zero 0
ai_flreey:
$(PYTHON) examples/ai_flreey.py zero 0
# run lots of test ai
ais:
$(PYTHON) examples/ai_halida.py zero 0 4
# pygame show local game
pygame:
$(PYTHON) srcs/pygame_show.py
show:
$(PYTHON) srcs/zmq_pygame_show.py 0
# record/replay log
record:
$(PYTHON) srcs/zmq_logger.py zero 0 test.log
replay:
$(PYTHON) srcs/zmq_replayer.py test.log