-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
79 lines (43 loc) · 2.36 KB
/
README
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
BZRFlag: BZFlag with Robotic Tanks!
=======
Developed by the BYU AML Lab to support the objectives of Brigham Young
University CS 470 "Introduction to Artificial intelligence."
Copyright 2008-2011 Brigham Young University, and distributed under the GNU GPL.
Comments and suggentions are welcome at: [email protected]
Installation:
You may need to install the pyparsing and pygame pkgs before running the barflag
server. If you're a CS470 student you will also need to use telnet for one of
the assignments, but that shouldn't be difficlt to install if you don't already
have it.
Zip and tar source distributions are maintained at:
http://code.google.com/p/bzrflag/
but can also be obtained by simply cloning the git reposatory. Use:
[you@yourmachine ~]$ git clone git://aml.cs.byu.edu/bzrflag.git
For windows, use the windows equivalent, or the provided git gui.
After downloading and unziping the distribution of your choice, run:
[you@yourmachine bzrflag]$ python setup.py install (if on linux, or)
???(on windows)
...(not finished... Add windows instructions and how to run tests)
Running the game:
The server can be run with the command: (assuming you are in the bzrflag dir)
[you@yourmachine bzrflag]$ ./bin/bzrflag
To get a list of the command line options you can use, run:
[you@yourmachine bzrflag]$ ./bin/bzrflag -h
Note that if you are on a laptop with low resolution, or in any event the window
size is too big, the option to change the size of the window is:
--window-size=[size]x[size]
The included simple agent can now be run (from a new window) using:
[you@yourmachine bzrflag]$ python bzagents/agent0.py localhost [port]
If you want to control the tanks manually, start up the server, then open
another terminal and run: (use one of the ports printed out by bzrflag)
[you@yourmachine bzrflag]$ telnet localhost [port]
The robotic tanks should introduce themselves by saying:
bzrobots 1
Reply with:
agent 1
You should now be connected, and may begin typing commands. For example, type
'shoot 0' to send the command to tank 0 to shoot. You can use the 'help' command
to get a list of all the commands available, or 'help [command]' to get help for
a specific command.
The game, of course, can also be run with the included simple agent using the
example shell script provided (example batch files are also included).