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.
- 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.
- Clone this repository:
git clone [<repository_url>](https://github.com/Traitor000/Incubyte-Chandrayaan-assignment)
- Navigate to the project directory:
cd chandrayaan-3-lunar-craft
- Open
index.html
in a web browser to interact with the spacecraft.
- Enter a sequence of commands (e.g., fblrud) in the input field.
- Click the "Execute Commands" button to see the spacecraft's movement and direction updates.
The project uses Jest for testing. To run the tests:
- Make sure Node.js and npm are installed.
- Install project dependencies:
npm install
- Run tests:
npm test
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make changes and commit them:
git commit -am 'Add new feature'
- Push to the branch:
git push origin feature/your-feature-name
- Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.