champo / tanks-over-turtles Goto Github PK
View Code? Open in Web Editor NEWCreate simple AIs to compete in a tank battle in a world with rather strange physics.
Create simple AIs to compete in a tank battle in a world with rather strange physics.
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)
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)
should I delete the unfinished python server in this branch?
Added branch "multiple" where the server will communicate with one client and that client (class named Player) will control several tanks. Need big refactor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.