i want to make a game like "java robots" and "c robots"
the idee:
2 programs (robots) fight into an arena
the robots are 2 txt files and the game detect the txt files
into the txtfiles you put something like:
int destination_x
int destination_y
scan(enemy)
shoot(enemy_x,enemy_y)
move(destination_x,destination_y)
if (robot_damaged){
destination_x+36
destenation_y+55
}
(this is a very simple example: it can't shoot the enemy,the enemy moves also and this robot can't hit)
you must avaible to scan 2 times and measure the course of the enemy.
functions:
function shoot
function scan
function move
i dont know howto begin
the idee:
2 programs (robots) fight into an arena
the robots are 2 txt files and the game detect the txt files
into the txtfiles you put something like:
int destination_x
int destination_y
scan(enemy)
shoot(enemy_x,enemy_y)
move(destination_x,destination_y)
if (robot_damaged){
destination_x+36
destenation_y+55
}
(this is a very simple example: it can't shoot the enemy,the enemy moves also and this robot can't hit)
you must avaible to scan 2 times and measure the course of the enemy.
functions:
function shoot
function scan
function move
i dont know howto begin