Questions tagged [robocode]

Robocode is a programming game, where the goal is to develop a robot battle tank to battle against other tanks in Java or .NET. The robot battles are running in real-time and on-screen.

Robocode is a programming game, where the goal is to develop a robot battle tank to battle against other tanks in Java or .NET. The robot battles are running in real-time and on-screen.

74 questions
15
votes
2 answers

Security of scala runtime

I'm developer of Robocode engine. We would like to make Robocode multilingual and Scala seems to be good match. We have Scala plugin prototype here. The problem: Because users are creative programmers, they may try to win battle different ways. As…
Pavel Savara
  • 3,427
  • 1
  • 30
  • 35
15
votes
2 answers

Is threre a RoboCode like Game or Challenge for Python?

Im looking for a game or challenge which is similar to RoboCode or Scalatron. I am not interested in challenges like Project Euler where i get points for solving a specific problem. I am looking for the direct competition. I am aware of…
HaBaLeS
  • 1,809
  • 3
  • 16
  • 26
12
votes
6 answers

Developing a Robocode type game with .Net, for a School Assignment

I am currently in my final year at school, studying for a Higher National Diploma in Computer Studies, and basically in this final semester, we need to develop a Software Project, that basically incorporates a whole system. Now, what I'm thinking…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
11
votes
1 answer

Where can I find a good Robocode tutorial?

I have really enjoyed playing Robocode with my first robot. Now I want to make something a little more exciting. What's the best tutorial on making advanced robots?
Kredns
  • 36,461
  • 52
  • 152
  • 203
5
votes
1 answer

Is there are alternative to robot programming game robocode?

I dont mind if it will be turn based or real time. It just must be popular and allow to write your strategy with java language
yura
  • 14,489
  • 21
  • 77
  • 126
5
votes
1 answer

Robocode how to get the enemies co-ordinates

I've been trying to get an enemy's coordinates so I can act on where they are. The code I use does not seem to work: double absBearing = e.getBearingRadians() + e.getHeadingRadians(); double ex = getX() + e.getDistance() *…
Ronan
  • 583
  • 5
  • 20
3
votes
3 answers

Need Help To Make A Good Robocode Robot

I came to ask about Robocode robots. I have a code for my robots and against 26 of my friends it came 11th. However, I want to try to make it better. I have looked over websites and adjusted my code so it can move unpredictably. This helped it come…
user1255673
  • 39
  • 1
  • 1
  • 4
3
votes
1 answer

Robocode + Python

The question is, how do you make a robot for Robocode using Python? There seem to be two options: Robocode + Jython Robocode for .NET + Iron Python There's some info for the first, but it doesn't look very robust, and none for the latter. Step by…
Nucular
  • 683
  • 1
  • 5
  • 19
3
votes
0 answers

How to build a Q-table of states/actions for robocode?

So my problem is with understanding of creation of Q-table for states with more parameters per state like robocode. 99% of all examples online are just too simple and it is hard to imagine it for environment as complicated as this one. From what I…
3
votes
2 answers

File writing in Robocode (Java)

Basically, I am trying to generate a log file in Robocode, but I am having issues as you cannot use try/catch in Robocode (as far as I am aware). I have done the following: public void onBattleEnded(BattleEndedEvent e) throws IOException { …
Jack H
  • 2,440
  • 4
  • 40
  • 63
3
votes
2 answers

Can't print to console in robocode

I am trying to write anything to Console, but with no luck. System.out.println("abc"); Should work, but it is not. It is my whole code: import robocode.HitWallEvent; import robocode.Robot; public class MyRobot extends Robot { @Override …
Marek
  • 1,189
  • 3
  • 13
  • 33
3
votes
2 answers

Java file input and output

I have the below method which is meant to append information to a file but I get the error below. In the method I use parts of robocode API which inherits from java.io.InputStream All the permissions on the files and folders seem fine and the file…
Ciarán
  • 773
  • 2
  • 7
  • 20
3
votes
0 answers

Is there a Robocode like game for C++

I have studied Java for a year. Now I'm starting to learn C++, and I next plan to start developing games. Where can I find game frameworks like Robocode or tutorials for learning C++ with a focus on game programming?
fripSide
  • 103
  • 7
2
votes
1 answer

Robocode getName() requires variable?

So I want my Robot to behave differently when the scanned robot it called "RamFire", and I tried doing this: public void onScannedRobot(ScannedRobotEvent e) { if (getName() = "RamFire") { // If the robot is called "RamFire" do this …
2
votes
2 answers

maven Embedded error: No such archiver

I am completely new to maven. I am trying to do a coverage analysis of the test in robocode. For that I am using clover (trial license) since emma doesn't seem to able to handle multi-module projects very well. Unfortunately, when it gets to the…
danny
  • 23
  • 3
  • 5
1
2 3 4 5