Code Monkey home page Code Monkey logo

roboduel's Introduction

RoboDuel

Code the strongest bot to win

  • HTML5/JS Dom-node game
  • Control your robot by writing its program before the duel starts
  • The robot runs programs written in a RoboCode
  • Destroy the enemy robot before it destroys you

"RoboDuel is the game I've wanted to play since the first time I
discovered the wonderful flash game, Light-bot. The goal is
fun with a sprinkle of educational value!"

Development status

  • Robots can be either created or downloaded and placed into the arena
  • Parser and interpretter for the robots' programming language written
  • Programs are user editable and robots immediately respond
  • Robots can fire missiles
  • Branching, looping and variable declarations are supported in robocode
  • Robots can be saved and loaded to the server via load and save buttons
  • Game design still evolving

Todo

  • Make UI clearer in game
  • Remove example codes
  • Style buttons to stand out even when not hovering
  • Fix saving on edge cases
  • Add screenshot to instructions

Development tools and environment of choice

RoboDuel is written in CoffeeScript, using the Sublime (with VIM support via Vintage and VintageEx). All development has been on Chrome and MacOS. Backbone.js is used to structure the code. The parser for the robot language was made with PEG.js and the initial basis for the interpreter was scheme.

Links

Installation

  1. Clone the repo: git clone https://github.com/logicmason/Roboduel.git
  2. Change to the RoboDuel directory: cd RoboDuel
  3. compile the coffescript: coffee --compile -o js/ coffee/
  4. open the file: open index.html

Testing

  • Jasmine (in the SpecRunner.html) for most things
  • For testing of the parsing of robot grammar run mocha from the command line

mocha -u tdd -R spec roboParseSpec

License

Creative Commons - Attribution, Share-Alike

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.