Skip to content

Commit fd2f28b

Browse files
committed
Finished the Tutorial.
Created a Rules file.
1 parent 6d44cc9 commit fd2f28b

File tree

4 files changed

+508
-111
lines changed

4 files changed

+508
-111
lines changed

RULES

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#+TITLE: Rules and Regulations
2+
#+AUTHOR: Tank Wars Team
3+
4+
#+DATE: 2011-03-15 Tue
5+
#+DESCRIPTION:
6+
#+KEYWORDS:
7+
#+LANGUAGE: en
8+
#+OPTIONS: H:1 num:nil toc:1 \n:t @:t ::nil |:t ^:nil -:t f:t *:t <:t
9+
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
10+
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
11+
#+EXPORT_SELECT_TAGS: export
12+
#+EXPORT_EXCLUDE_TAGS: noexport
13+
#+LINK_UP:
14+
#+LINK_HOME:
15+
16+
#+SEQ_TODO: WARNING RULE WISH STATUS-MESSAGE
17+
18+
* WARNING *DO NOT* modify any part of the code except for the functions in DecisionMaker1.cpp.
19+
* WARNING *DO NOT* change any of the header files.
20+
** Any team found to have been doing so will be disqualified immediately
21+
* WARNING Do not write or open any file in your program
22+
** Your bot will be disqualified
23+
* STATUS-MESSAGE - Bot Timed Out
24+
** Your function get_player_move () must return a move within the specified TIME_LIMIT (which is 0.5 seconds)
25+
** If not, your bot will get negative points and be deactivated
26+
** The match will not be considered
27+
* STATUS-MESSAGE - Disqualified
28+
** Invalid Move
29+
** Your bot must not return any invalid move -
30+
*** ie. A move that is not one of the 8 moves as described in the Tutorial and in the DecisionMaker Class
31+
** If so, your bot will get negative points and be deactivated
32+
* STATUS-MESSAGE - OK
33+
** The match was played without any disqualification.
34+
* RULE Gold pieces will not be regenerated on the map once they have been picked up by a tank
35+
* RULE Same goes for Bunkers that have been shot
36+
* Take care to not get into an loop where you keep doing the same thing over and over again.
37+
** For instance, when two AGGRESSIVE bots face each other, they might keep shooting at each other and do that forever, since neither will be able to hit the other
38+
* Use the constants defined in Constants.h as far as possible
39+
** eg. WALL, SHOOT_RIGHT
40+
* We may change the value of BULLET_SPEED at any time. So *DO NOT* hard-code it in your program.
41+
** Use BULLET_SPEED instead
42+
* Testing of Bots
43+
** You may test your bots against bots submitted by players all over India by uploading it on the Tank Wars Online Judge
44+
** You may submit any number of bots you want.
45+
** However, only the 3 latest uploaded bots will be active at any point of time. To make some of your older bots play, you should deactivate some of the active bots and activate the older one (s)
46+
** At the end of the Round, the latest bot of each team will be considered as their final entry.
47+
* Tournament
48+
** A tournament will be held amongst the final bots and results will be instantly updated on the Judge as the matches are held.

RULES.html

+268
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,268 @@
1+
<?xml version="1.0" encoding="iso-8859-1"?>
2+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4+
<html xmlns="http://www.w3.org/1999/xhtml"
5+
lang="en" xml:lang="en">
6+
<head>
7+
<title>Rules and Regulations</title>
8+
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
9+
<meta name="generator" content="Org-mode"/>
10+
<meta name="generated" content="2011-03-15 Tue"/>
11+
<meta name="author" content="Tank Wars Team"/>
12+
<meta name="description" content=""/>
13+
<meta name="keywords" content=""/>
14+
<style type="text/css">
15+
<!--/*--><![CDATA[/*><!--*/
16+
html { font-family: Verdana; font-size: 12pt; }
17+
.title { text-align: center; }
18+
.todo { color: red; }
19+
.done { color: green; }
20+
.tag { background-color: #add8e6; font-weight:normal }
21+
.target { }
22+
.timestamp { color: #bebebe; }
23+
.timestamp-kwd { color: #5f9ea0; }
24+
p.verse { margin-left: 3% }
25+
pre {
26+
border: 1pt solid #AEBDCC;
27+
background-color: #F3F5F7;
28+
padding: 5pt;
29+
font-family: monospace;
30+
font-size: 90%;
31+
overflow:auto;
32+
}
33+
table { border-collapse: collapse; }
34+
td, th { vertical-align: top; }
35+
dt { font-weight: bold; }
36+
div.figure { padding: 0.5em; }
37+
div.figure p { text-align: center; }
38+
.linenr { font-size:smaller }
39+
.code-highlighted {background-color:#ffff00;}
40+
.org-info-js_info-navigation { border-style:none; }
41+
#org-info-js_console-label { font-size:10px; font-weight:bold;
42+
white-space:nowrap; }
43+
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
44+
font-weight:bold; }
45+
/*]]>*/-->
46+
</style>
47+
<script type="text/javascript">
48+
<!--/*--><![CDATA[/*><!--*/
49+
function CodeHighlightOn(elem, id)
50+
{
51+
var target = document.getElementById(id);
52+
if(null != target) {
53+
elem.cacheClassElem = elem.className;
54+
elem.cacheClassTarget = target.className;
55+
target.className = "code-highlighted";
56+
elem.className = "code-highlighted";
57+
}
58+
}
59+
function CodeHighlightOff(elem, id)
60+
{
61+
var target = document.getElementById(id);
62+
if(elem.cacheClassElem)
63+
elem.className = elem.cacheClassElem;
64+
if(elem.cacheClassTarget)
65+
target.className = elem.cacheClassTarget;
66+
}
67+
/*]]>*///-->
68+
</script>
69+
</head>
70+
<body>
71+
<div id="content">
72+
73+
<h1 class="title">Rules and Regulations</h1>
74+
75+
76+
<p><br/>
77+
</p>
78+
<div id="table-of-contents">
79+
<h2>Table of Contents</h2>
80+
<div id="text-table-of-contents">
81+
<ul>
82+
<li><a href="#sec-1"><b>DO NOT</b> modify any part of the code except for the functions in DecisionMaker1.cpp. </a></li>
83+
<li><a href="#sec-2"><b>DO NOT</b> change any of the header files. </a></li>
84+
<li><a href="#sec-3">Do not write or open any file in your program </a></li>
85+
<li><a href="#sec-4">- Bot Timed Out </a></li>
86+
<li><a href="#sec-5">- Disqualified </a></li>
87+
<li><a href="#sec-6">- OK </a></li>
88+
<li><a href="#sec-7">Gold pieces will not be regenerated on the map once they have been picked up by a tank </a></li>
89+
<li><a href="#sec-8">Same goes for Bunkers that have been shot </a></li>
90+
<li><a href="#sec-9">Take care to not get into an loop where you keep doing the same thing over and over again. </a></li>
91+
<li><a href="#sec-10">Use the constants defined in Constants.h as far as possible </a></li>
92+
<li><a href="#sec-11">We may change the value of BULLET_SPEED at any time. So <b>DO NOT</b> hard-code it in your program. </a></li>
93+
<li><a href="#sec-12">Testing of Bots </a></li>
94+
<li><a href="#sec-13">Tournament </a></li>
95+
</ul>
96+
</div>
97+
</div>
98+
99+
<div id="outline-container-1" class="outline-2">
100+
<h2 id="sec-1"><span class="todo WARNING"> WARNING</span> <b>DO NOT</b> modify any part of the code except for the functions in DecisionMaker1.cpp. </h2>
101+
<div class="outline-text-2" id="text-1">
102+
103+
</div>
104+
105+
</div>
106+
107+
<div id="outline-container-2" class="outline-2">
108+
<h2 id="sec-2"><span class="todo WARNING"> WARNING</span> <b>DO NOT</b> change any of the header files. </h2>
109+
<div class="outline-text-2" id="text-2">
110+
111+
<ul>
112+
<li id="sec-2.1">Any team found to have been doing so will be disqualified immediately <br/>
113+
</li>
114+
</ul>
115+
</div>
116+
117+
</div>
118+
119+
<div id="outline-container-3" class="outline-2">
120+
<h2 id="sec-3"><span class="todo WARNING"> WARNING</span> Do not write or open any file in your program </h2>
121+
<div class="outline-text-2" id="text-3">
122+
123+
<ul>
124+
<li id="sec-3.1">Your bot will be disqualified <br/>
125+
</li>
126+
</ul>
127+
</div>
128+
129+
</div>
130+
131+
<div id="outline-container-4" class="outline-2">
132+
<h2 id="sec-4"><span class="done STATUS-MESSAGE"> STATUS_MESSAGE</span> - Bot Timed Out </h2>
133+
<div class="outline-text-2" id="text-4">
134+
135+
<ul>
136+
<li id="sec-4.1">Your function get_player_move () must return a move within the specified TIME_LIMIT (which is 0.5 seconds) <br/>
137+
</li>
138+
<li id="sec-4.2">If not, your bot will get negative points and be deactivated <br/>
139+
</li>
140+
<li id="sec-4.3">The match will not be considered <br/>
141+
</li>
142+
</ul>
143+
</div>
144+
145+
</div>
146+
147+
<div id="outline-container-5" class="outline-2">
148+
<h2 id="sec-5"><span class="done STATUS-MESSAGE"> STATUS_MESSAGE</span> - Disqualified </h2>
149+
<div class="outline-text-2" id="text-5">
150+
151+
<ul>
152+
<li id="sec-5.1">Invalid Move <br/>
153+
</li>
154+
<li id="sec-5.2">Your bot must not return any invalid move - <br/>
155+
<ul>
156+
<li id="sec-5.2.1">ie. A move that is not one of the 8 moves as described in the Tutorial and in the DecisionMaker Class <br/>
157+
</li>
158+
</ul>
159+
</li>
160+
<li id="sec-5.3">If so, your bot will get negative points and be deactivated <br/>
161+
</li>
162+
</ul>
163+
</div>
164+
165+
</div>
166+
167+
<div id="outline-container-6" class="outline-2">
168+
<h2 id="sec-6"><span class="done STATUS-MESSAGE"> STATUS_MESSAGE</span> - OK </h2>
169+
<div class="outline-text-2" id="text-6">
170+
171+
<ul>
172+
<li id="sec-6.1">The match was played without any disqualification. <br/>
173+
</li>
174+
</ul>
175+
</div>
176+
177+
</div>
178+
179+
<div id="outline-container-7" class="outline-2">
180+
<h2 id="sec-7"><span class="todo RULE"> RULE</span> Gold pieces will not be regenerated on the map once they have been picked up by a tank </h2>
181+
<div class="outline-text-2" id="text-7">
182+
183+
</div>
184+
185+
</div>
186+
187+
<div id="outline-container-8" class="outline-2">
188+
<h2 id="sec-8"><span class="todo RULE"> RULE</span> Same goes for Bunkers that have been shot </h2>
189+
<div class="outline-text-2" id="text-8">
190+
191+
</div>
192+
193+
</div>
194+
195+
<div id="outline-container-9" class="outline-2">
196+
<h2 id="sec-9">Take care to not get into an loop where you keep doing the same thing over and over again. </h2>
197+
<div class="outline-text-2" id="text-9">
198+
199+
<ul>
200+
<li id="sec-9.1">For instance, when two AGGRESSIVE bots face each other, they might keep shooting at each other and do that forever, since neither will be able to hit the other <br/>
201+
</li>
202+
</ul>
203+
</div>
204+
205+
</div>
206+
207+
<div id="outline-container-10" class="outline-2">
208+
<h2 id="sec-10">Use the constants defined in Constants.h as far as possible </h2>
209+
<div class="outline-text-2" id="text-10">
210+
211+
<ul>
212+
<li id="sec-10.1">eg. WALL, SHOOT_RIGHT <br/>
213+
</li>
214+
</ul>
215+
</div>
216+
217+
</div>
218+
219+
<div id="outline-container-11" class="outline-2">
220+
<h2 id="sec-11">We may change the value of BULLET_SPEED at any time. So <b>DO NOT</b> hard-code it in your program. </h2>
221+
<div class="outline-text-2" id="text-11">
222+
223+
<ul>
224+
<li id="sec-11.1">Use BULLET_SPEED instead <br/>
225+
</li>
226+
</ul>
227+
</div>
228+
229+
</div>
230+
231+
<div id="outline-container-12" class="outline-2">
232+
<h2 id="sec-12">Testing of Bots </h2>
233+
<div class="outline-text-2" id="text-12">
234+
235+
<ul>
236+
<li id="sec-12.1">You may test your bots against bots submitted by players all over India by uploading it on the Tank Wars Online Judge <br/>
237+
</li>
238+
<li id="sec-12.2">You may submit any number of bots you want. <br/>
239+
</li>
240+
<li id="sec-12.3">However, only the 3 latest uploaded bots will be active at any point of time. To make some of your older bots play, you should deactivate some of the active bots and activate the older one (s) <br/>
241+
</li>
242+
<li id="sec-12.4">At the end of the Round, the latest bot of each team will be considered as their final entry. <br/>
243+
</li>
244+
</ul>
245+
</div>
246+
247+
</div>
248+
249+
<div id="outline-container-13" class="outline-2">
250+
<h2 id="sec-13">Tournament </h2>
251+
<div class="outline-text-2" id="text-13">
252+
253+
<ul>
254+
<li id="sec-13.1">A tournament will be held amongst the final bots and results will be instantly updated on the Judge as the matches are held. <br/>
255+
</li>
256+
</ul>
257+
</div>
258+
</div>
259+
<div id="postamble">
260+
<p class="author"> Author: Tank Wars Team
261+
<a href="mailto:[email protected]">&lt;[email protected]&gt;</a>
262+
</p>
263+
<p class="date"> Date: 2011-03-15 Tue</p>
264+
<p class="creator">HTML generated by org-mode 6.33x in emacs 23</p>
265+
</div>
266+
</div>
267+
</body>
268+
</html>

0 commit comments

Comments
 (0)