Giter Club home page Giter Club logo

marsroverkataexample's Introduction

Original Inspiration

Inspiration for this KATA can be found from the Mars Rover Kata Logs site (http://kata-log.rocks/mars-rover-kata)

Purpose

This exercise is designed to give developers practice in the following:

  • TDD on a given set of requirements
  • Get used to the unit testing tool (MsTest) as well as a mocking framework (Moq)
  • Get used to the test naming conventions
  • Good class and interface design (for example, leveraging an interface for logging, not depending upon a static instance)
  • For those new to .NET, experience adding projects, files, and interacting with common libraries

Environment Requirements

  • Visual Studio 2017
  • .NET Framework (v 4.7.2)

Task

You’re part of the team that explores Mars by sending remotely controlled vehicles to the surface of the planet. Develop an API that translates the commands sent from earth to instructions that are understood by the rover.

Requirements

  • The rover always starts at (0,0) facing N.
  • The rover receives a character array of commands.
  • The rover must log it's current position after receiving a command.
  • Implement commands that move the rover forward/backward (f,b).
  • Implement commands that turn the rover left/right (l,r).
  • No third party libraries outside .Net Framework & Moq.
  • One person conducting this exercise should have run through it before.

Process

  • Initialize git repository for work.
  • Sit down and read requirements, fill in gaps as needed.
  • Brainstorm domain model for concepts involved.
  • Pick starting point (ie Rover) to begin TDD/Pair Programming/Ping Pong Programming.
    • A writes a new test and sees that it fails.
    • B implements the code needed to pass the test.
    • Talk about if there is stuff to refactor (business or test code, one at a time).
    • Commit work locally.
    • Person A & B swap places and repeat the process.

Resources

https://ardalis.com/rgrc-is-the-new-red-green-refactor-for-test-first-development

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.