Chandrayaan 3 Lunar Craft Control | 20051636 Ashutosh Gautam

Welcome to the Chandrayaan 3 Lunar Craft Control project! This project simulates the control of a lunar spacecraft using JavaScript, HTML, and CSS. The spacecraft receives a sequence of commands and moves, rotates, and changes direction accordingly.

Table of Contents

Features

  • Move the spacecraft forward/backward (f, b).
  • Turn the spacecraft left/right (l, r).
  • Turn the spacecraft up/down (u, d).
  • Display the spacecraft's position and direction in the UI.

Getting Started

  1. Clone this repository: git clone [<repository_url>](https://github.com/Traitor000/Incubyte-Chandrayaan-assignment)
  2. Navigate to the project directory: cd chandrayaan-3-lunar-craft
  3. Open index.html in a web browser to interact with the spacecraft.

Usage

  1. Enter a sequence of commands (e.g., fblrud) in the input field.
  2. Click the "Execute Commands" button to see the spacecraft's movement and direction updates.

Tests

The project uses Jest for testing. To run the tests:

  1. Make sure Node.js and npm are installed.
  2. Install project dependencies: npm install
  3. Run tests: npm test

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Make changes and commit them: git commit -am 'Add new feature'
  4. Push to the branch: git push origin feature/your-feature-name
  5. Create a pull request.

License

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