Coder Social home page Coder Social logo

rover-challenge's Introduction

Mars Rover Challenge

A simple implementation for Google's Mars Rover Coding Challenge.

Building

Building the project to create it's class files can be done with

>  .\gradlew build

You can also generate a .jar using

>  .\gradlew jar

Running

Run the current implementation reading in data from the standard input stream

>  .\gradlew run

Testing

To test existing tests just run the below command. Note that during the build process all tests are run.

>  .\gradlew test

Future considerations

The current implementation as many limitations but are however open for extension. Firstly, The Std input stream is being used for all input and output. Extending a Transport gives you opportunity to provide your own means of transport whether it's file via reading or a TCP stream, whichever.

The current implementation is a single threaded blocking design. In a proper system this would be un-ideal and looking at something that follows proper I/O event reactors or delegating work off the main thread would be much better.

In addition to this, if more time was provided I would of followed a more reactive approach where Houston would emit new routes to rovers. Rovers would then also emit their new positions to whoever may be listening.

There is a tiny provision for world simulation. By tiny i mean, a simple foundation is there given the notion that there is a world entity for rovers to travel on. This may also include terrain that a rover has to navigate around or something in the case of an AI challenge.

There were also a few things that weren't addressed due to limited information. What if the rover exceeds the world boundaries? Does the world wrap itself or is Google full of tinfoil hat wearing flat earthers? What if rovers obtain the same area?

License

Copyright 2018 Kevin Woodland

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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.