Gimmick
FAQs

Total Prize money worth INR 1,40,000.

Go to the following link for more informationhttp://www.techkriti.org/~gimm1/

FAQs

Running The Game

 

Q. I have downloaded the zip file from the site, but I don't know how to start the game.

A. To conduct a single match between the bots you have to run

    "server.bat"/"server.sh" and "run.bat"/"run.sh" or optionally use the following commands from the console/command-prompt:

    # Server
    $ cd parent_folder_of_gimmick_package
    $ java gimmick.Main 100 map4.map 
    # 100 is the delay per game cycle and map4.map is the map file. 
    # To run the player bots, use "run.bat"/"run.sh" or:
    $ java PlayerClass localhost 8000

    # You have to run the above line in 3 more consoles changing the port

    # no.8000 to 8001 8002 8003.

Q. Do I need to install Java to run the game?

A. The game engine is coded in Java. You would need Java Runtime Environment 1.6 or later to properly run the engine and Java Development Kit 1.6 or later to compile your code.

Game Physics

Q. What coordinate system is used?

 

A.  A polar coordinate system (r,?) is used to denote the positions of the bots, where r is distance from the center of the field and ? (Theta) is the angle between 0 and 360 degrees measured in counter clockwise sense from the positive X / horizontal axis.

Q. How is time measured in Gimmick?

A. Time is measured in GameCycles. Each bot can move at most BI.maxDis, turn BI.maxAngle (in degrees), or fire at each GameCycle. Larger move/turn calls are broken into smaller steps by the BI class and sent to the server in each GameCycle. GameCycle.GameCycleNo is an integer representing the cycle of game when that GameCycle has been released by the server.

Q. Which is the range of a bullet?

A. A bullet has no range. It keeps going till it hits a bot or a wall.

Q. Does the robot velocity get added to the bullet velocity on firing?

A. No. Bullet velocity is not affected by bot velocity.

Q. What is the size of the field?

A. The size of the field is given by BI.Field_Radius.

Q. I want to fire a bullet every turn, but I can't. Why?

A. The game engine allows you to fire two consecutive bullets on after a gap of at least two turns. If you give a fire order before that, you will lose your health as penalty (Food2 might be helpful to you).

Q. How much damage does a bullet do?

A. Getting hit with a bullet reduces the health by 10.

Q. How fast do I move?

A. You can move at the maximum speed given by BI.maxDis.

Q. How fast do I turn?

A. The maximum turning speed (in degrees) is given by BI.maxAngle

Q. What is the size of a bot?

A. The bot size is given by BI.botRadius

Q. Can I specify the initial position of my bot?

A. No. The bots are randomly placed in the field at the beginning of each round.

Q. Can I turn my gun in a direction other than the direction in which I am facing?

A. No. The gun always points towards in the same direction as the direction the bot is facing.

Q. Can I move in a direction at some angle to the direction I am facing?

A. The move and moveNow methods of BI class take parameters r, t and speed. R is the distance you want to move. t is the angle of movement measured counter clockwise relative to the direction the bot is facing currently. The bot moves r distance in steps of "speed" in each GameCycle.

Q. What does food1 do?

A. It increases your health by 10.

Q. What does food2 do?

A. It enables you to fire bullet every turn for next 10 gamecycles.

Q. Can I decide how fast I move or turn?

A. You can specify any speed (less than BI.maxDis) when you call move/moveNow methods. Each big move is broken into steps of "speed". The bot moves these steps in each Gamecycle. However, you cannot decide how fast you turn. You always turn a fixed angle in each GameCycle given by BI.maxAngle.


For any queries contact us at swcorner@techkriti.org or any of the co-ordinators -

Event Coordinators:

Himanshu jain hjain@iitk.ac.in 9889914577
Prince Arora parora@iitk.ac.in 9410482028
Pankaj Pawan
pawanp@iitk.ac.in
9956719998
Parami krishna chaitanya parimi@iitk.ac.in 9450588159

 

updates