Coder Social home page Coder Social logo

gradlerobot's Introduction

GradleRobot

This repo is a template for creating robots for RoboCode using Gradle.
This makes it easy to use any IDE to code Robots.

You get all the benefits from using an IDE and can easily export a jar file that RoboCode can import.

This repo comes with an example robot implementation class so you can get started immediately.

How to Use

Setup

Change and Export

Change Robot/Project Name

Because you want your robot to be special and non-generic you want to change the name of your Robot.

For this a simple java program is contained in this repo which renames your project, namespaces and classes.

Before running the command it is recommended to close your IDE completely (unloading the project from you IDE might be enough).
The program can be run via the commandline with the following command (cd into the repo folder first):

java -jar RenameProject.jar <YOUR_NEW_PACKAGE_NAME>.<YOUR_NEW_PROJECT_NAME>

Replace <YOUR_NEW_PACKAGE_NAME> in the command above with a package name for your robot class. If you do not know what that means then just use the same as for <YOUR_NEW_PROJECT_NAME>.
Replace <YOUR_NEW_PROJECT_NAME> in the command above with your new project name.
Keep the . between these two placeholders.

Export a Jar File for RoboCode

To generate/export a jar file that can be imported into RoboCode use the shadowJar Gradle task.
This task can be run via the commandline with the following command (cd into the repo folder first):

./gradle shadowJar

The exported jar file can be found in build/libs/.

gradlerobot's People

Contributors

klotzi111 avatar

Watchers

 avatar

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.