-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
118 lines (82 loc) · 3.86 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
TANK WARS v1.0
--------------
Intro:
-----
This game is inspired by the evergreen classic Battle City.
* There are two Tanks which can move around the Arena, collect
items and shoot at other destructable objects.
* There is a Command Base (referred to as Falcon) for each Tank.
Aim:
----
* The aim of the game is to score maximum points by the end of the
game. Points can be earned by collecting gold or by killing enemy
base or enemy tank.
* Game ends when
* one of the tanks is killed or
* the bases is shot down or
* when the maximum number of moves have been made
How to Get Started:
------------------
We have done most of the hard work for you guys :P. All you guys
need to do is just write one function, the brain (or the Decision
Maker of the Tank as we see it :) ).
To enable you to get a feel for the game very early, we have a
pre-played game stored in this folder. Just double-click on the
tank_video_player.html file and click on play. You can see a
sample match being played there.
To get started with coding:
---------------------------
For those who can't wait to get started on their bots, here's the Quick-Start Guide.
The three important files from the player's perspective are the
* DecisionMaker1.cpp
* Info.h (in the include folder)
* Info.cpp (in the src folder)
Decision Maker
The participants (players) are required ONLY to modify
DecisionMaker1.cpp. All your code and supporting functions (if
any) will go into this file.
Info file
You can look at Info.h to understand better the information we
pass you. You are strongly discouraged to modify any other file
apart from DecisionMaker1.cpp and you shall be
disqualified if they are found to have done so.
The information there will help you go beyond the basic functions
we provide you and implement your very own special
strategies.
Then you can start coding by writing the appropriate
logic of your implementation in the get_player_move () function of
the DECISIONMAKER Class.
You can proceed in two ways :
* You can directly just look at the various possibilities and
code for them so that you take appropriate action
OR
* You can try to build some mathematical model. We have given
a basic Decision Making framework where you can set values
for various strategies in a Weightage Table and Difficulty
Table and calculate the best actions as per those weights.
Best Mathematical models will be awarded special prizes.
How to test your Bots:
---------------------
After you fill in DecisionMaker1.cpp with your code just use the
terminal to go to the main directory which contains all these
folders (especially the Makefile). You will find that we have
already filled in default code for DecisionMaker2.cpp so that you
can test your bot against it on your computer.
Now, execute the following commands in order:
make play
This will literally 'play' the game with your DecisionMaker1 code controlling Tank 1 and DecisionMaker2 code controlling Tank 2
make display
This will open the match just played in Firefox. Just click on
Play to see the match. Alternatively, open the game_display.html
file manually in your favourite browser.
How to submit your bot:
-----------------------
All you need to do is submit the DecisionMaker1.cpp to our online
judge. The initial few days are only for testing and feedback
for participants. At the end of this period you will be asked to
submit your final bot. For further details and latest updates,
visit our webpage online.
Our online judge can be found at
www.exebit.org or
www.cse.iitm.ac.in/exebit/site
ALL THE BEST!!