Over a million developers have joined DZone.

Robots – An Eclipse Plug-in Game

· Java Zone

Learn more about the advantages of moving from a monolithic to microservices architecture.  Brought to you in partnership with IBM.

Quite similar with a traditional Linux robot game, with a simple teleport, implements by Eclipse plug-in. You can create your own robots by extending ‘robot’ extension point.

Get the Game  plugins.zip

Game window:

Win screen:

Launch the Game: Copy jars into [eclipse base dir]/plugins, restart eclipse studio, Menu-Window-Show View-Other-Game-’Robot Game’.

View extension of robot:

Robot extension point:


Create your own robot, you need to define:routing class, image, power(1 to 5, the player is zero, so it can be defeated by any other robots), name, count(total on game start), speed(steps in once route).


import java.util.Random;
import org.eclipse.swt.graphics.Point;
import com.osgix.game.robot.game.RobotGame;
import com.osgix.game.robot.robot.AbstractRobot;
public class Robot1 extends AbstractRobot {
    public boolean move() {
        return true;
    public void newGame(RobotGame game) {
        Random generator = new Random();
        Point p = new Point(0, 0);
        do {
            p.x = generator.nextInt(game.getMapX());
            p.y = generator.nextInt(game.getMapY());
        } while (game.hasRobots(p));

 provide by yanbasic, enjoy it :-)

From Idea to Application gives you the architecture to quickly build, manage and run a range of applications (web, mobile, big data, new smart devices, etc.) on an open-standard, cloud-based platform. See why developers are using IBM Bluemix. Brought to you in partnership with IBM.


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}