GithubHelp home page GithubHelp logo

gamesedu / robojs-jeick-gr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeickmann/robojs

2.0 3.0 1.0 1.16 MB

A JavaScript-Version of the popular Robocode Application - In Greek Language

Home Page: http://gamesedu.github.io/robojs-jeick-gr/

License: Other

JavaScript 75.67% CSS 0.47% HTML 8.72% PHP 9.99% Hack 5.16%
robocode-like programming-game coding-game

robojs-jeick-gr's Introduction

roboJS

to check editor run createbot.php in your server (eg xampp server) listbots.php : list all robots

Introduction

roboJS is a clone of the popular robocode program to JavaScript. You can code your own robot in JavaScript and have it fight other bots. If robocode itself is unfamiliar to you, head over to http://robowiki.net/ to learn more about it.

roboJS tries to mirror the behaviour of robocode as closely as possible.

Setup

Just clone the repository and get it served from an http server. The easiest way (if you have node.js installed) is to install http-server

npm install http-server and then run http-server in the directory of roboJS http-server

You can then start roboJS by simply using your favorite webbrowser and open http://localhost:8080

Starting roboJS

the battle runner is started using by simply opening the roboJS-Folder via http in a Webbrowser (please note that you need a webbrowser that supports HTML5 Webworkers, a recent Chrome, Firefox or Safari should do the job).

You can control the battle running using Get-Parameters. The most important ones are bot1 and bot2 which determine what oppponents the runner will load. The values can be simply robot-names. The runner will then load the file main.js in the appropriate subfolder of the "bots"-subfolder.

Example: To load a battle between the two bots "tracker" and "walls", simply open

http://localhost:8080/?bot1=tracker&bot2=walls

Each battle lasts 10 rounds by default. You can change the number of rounds by specifying the parameter rounds

http://localhost:8080/?bot1=tracker&bot2=walls&rounds=20

In order to create your own robot, it is easiest to copy the folder bots/template to a new folder in the "bots"-directory and make changes there. The bots/template/main.js contains all the necessary code to get a robot running and a short documentation to the methods you can use to control your robot. Don't forget to change your robots name.

I will add a more in-depth documentation in the future.

Greek Words:

(eg source=source.replace(/ΔΕΞΙΑ/gi,"this.turnRight"); )

  • ΔΕΞΙΑ = this.turnRight

  • ΑΡΙΣΤΕΡΑ = this.turnLeft

  • ΜΠΡΟΣΤΑ = this.moveForward

  • ΠΙΣΩ = this.moveBack

  • μπροστα = this.moveForward

  • ΣΤΟΠ = wait

  • ΕΠΙΘΕΣΗ = this.fire

  • ΠΥΡ = this.fire

  • ΜΠΑΜ = this.fire(1)

  • ΜΠΟΥΜ = this.fire(2)

  • ΔΕ = this.turnRight

  • ΑΡ = this.turnLeft

  • ΜΠ = this.moveForward

  • ΠΙ = this.moveBack

  • ΠΕΡΙΜΕΝΕ = wait

  • ΟΠΛΟ_ΔΕΞΙΑ = this.turnGunRight

  • ΟΠΛΟ_ΑΡΙΣΤΕΡΑ = this.turnGunLeft

  • ΡΑΝΤΑΡ_ΔΕΞΙΑ = this.turnRadarRight

  • ΡΑΝΤΑΡ_ΑΡΙΣΤΕΡΑ = this.turnRadarLeft

robojs-jeick-gr's People

Contributors

plirof avatar jeickmann avatar cucu avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

robojs-jeick-gr's Issues

this. problem

ΜΠΡΟΣΤΑ(100) does not work . Code must be entered as

this.ΜΠΡΟΣΤΑ(100)

Μάλλον πρέπει να εισάγεται ο κώδικας με combobox ....

ΡΑΝΤΑΡ_ΑΡΙΣΤΕΡΑ(15); ->ΡΑΝΤthis.turnLeft_this.turnRight(15) ;

ΡΑΝΤΑΡ_ΑΡΙΣΤΕΡΑ(15); ->ΡΑΝΤthis.turnLeft_this.turnRight(15) ;

Η μετατροπή παρουσιάζει πρόβλημα στο εξής:

ΟΠΛΟ_ΔΕΞΙΑ(15) ; 
ΟΠΛΟ_ΑΡΙΣΤΕΡΑ(10); 
ΡΑΝΤΑΡ_ΔΕΞΙΑ(15) ; 
ΡΑΝΤΑΡ_ΑΡΙΣΤΕΡΑ(15);

μετατρεπεται σε :

this.turnGunRight(15) ; 
this.turnGunLeft(10); 
ΡΑΝΤthis.turnLeft_this.turnRight(15) ; 
this.turnRadarLeft(15);

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.