Chandrayaan 3 TDD Assessment

Problem statement: Chandrayaan 3 Spacecraft Control Program using TDD

Features

The program provides the following functionalities:

  • Move the spacecraft forward/backward (f, b).
  • Turn the spacecraft left/right (l, r).
  • Turn the spacecraft up/down (u, d).

Prerequisites

  • Node.js and NPM (Node Package Manager)

Steps to Run the Project

  1. Clone the project:
    git clone https://github.com/malaviya-parth/Chandrayaan_3_TDD_Assessment.git
  2. Navigate to the project directory:
    cd Chandrayaan_3_TDD_Assessment
  3. Install the dependencies:
    npm i
  4. Run the tests:
    npm test
  5. Run the project:
    npm start
    • Enter Initial Direction
    • Enter commands

Perks of TDD

The good thing about TDD is it helps you to think about the problem before you start coding.

  • It also helps you to think about the edge cases and write test cases for them.
  • It also helps you to think about the design of the code.
  • It also helps you to think about the naming of the methods and variables.

License

  • This project is licensed under the MIT License - see the LICENSE file for details.

Author