Giter Site home page Giter Site logo

tanks-over-turtles's Introduction

13/3/2011 version 1.0

Tanks over Turtles is a game in which you have a given number of tanks over a circular world held by giant turtles.
Each of your tanks runs the same strategy without knowledge of the other tanks.
The tanks can move, ask for information of the map or shoot a missile. When a tank is reached by a missile, it instantly disappears from the map. The last remaining team on the map is the winner.

The initial information you will get, is the following line:

TEAM_ID SHOOT_RANGE

  where TEAM_ID is a positive integer representing your team, and SHOOT_RANGE is the maximum distance the missiles can travel

After this, and for the rest of the game, the operations (in order of appliance) available are:

MOVE [UP|RIGHT|DOWN|LEFT]

  moves the tank one unit

SHOOT [UP|RIGHT|DOWN|LEFT]

  shoots a missile

LASER [UP|RIGHT|DOWN|LEFT]

  returns two integers separated by a space, the TEAM_ID of the closest tank in the specified direction, and the distance to it (remember the map is circular, so there always is a tank in front of you).

Every command should end with an end of line

Further clarifications:

 * After every tank has told its command, there's a moving phase, then a shooting phase, and finally a laser phase.

 * If a tank moves to an occupied position, both tanks are destroyed at the end of the moving phase (so tank castling is valid)

tanks-over-turtles's People

Contributors

champo avatar eordano avatar esneider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

esneider

tanks-over-turtles's Issues

pipes

there's a limit of 256 open files per process, so each process can have ~250 pipes. Since we have two pipes per child process, there's an upper bound of ~125 number of total tanks (players * tanks_per_player)

python server

should I delete the unfinished python server in this branch?

Multiple tanks with one connection

Added branch "multiple" where the server will communicate with one client and that client (class named Player) will control several tanks. Need big refactor.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.