Code Monkey home page Code Monkey logo

travelling-sailsman's Introduction

Scout

Arguments:

-g/--groups -> Number of players followed by player packages E.g: -g 3 g1 g2 g3

-t/--targets -> Number of targets

-fs/--frameskip -> integer value, set to n means (n-1) frames skipped for each shown

-S/--seed -> seed for randomization, defaults to system current time millis

-f/--fps -> frames per second for gui

--gui -> gui enabled

--verbose -> verbose

-tl/--timelimit -> time limit in ms

-dt/--timestep -> timestep in double. Suggested/Default: 0.015

If the simulation gui is slow, crank up the speed by increasing fps and frameskip. You might want this if your player is so fast that the gui speed is limited by the refresh rate. Set frame skip to like ~ 5 made the gui ~5x faster for the random player...

The makefile gives you sample parameters. You can use the makefile for convenience if you want to. Makefile commands:

make compile

-> Compiles simulator

make gui

-> runs the simulator with gui

make run

-> runs without gui

make verbose

-> runs on verbose mode

There are some useful vector functions in Point.java. Simulator.getSpeed is public so you can use that too. The change in coordinates for one move is calculated as (speed) * (direction_vector) * dt

Good luck!

travelling-sailsman's People

Contributors

quizywiz avatar

Watchers

 avatar  avatar

Forkers

rmsim cpape129

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.