Skip to content

JIVANSH25/rover-navigation-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rover Navigation System

This project implements a rover navigation simulation similar to the Mars Rover problem.
The goal is to simulate robotic rovers moving across a rectangular plateau based on commands received from mission control.


Problem Description

ISRO deploys robotic rovers on a plateau on the Moon. The plateau is divided into a grid.

Each rover has:

  • X coordinate
  • Y coordinate
  • Direction it is facing (N, E, S, W)

Rovers receive commands to explore the terrain.

Commands:

L → Turn Left
R → Turn Right
M → Move Forward


Input Format

First line: Plateau upper-right coordinates.

Example:

5 5

Each rover has two lines:

Initial position: 1 2 N

Commands: LMLMLMLMM

Example Input:

5 5
1 2 N
LMLMLMLMM
3 3 E
MMRMMRMRRM


Expected Output

1 3 N
5 1 E


Project Structure

rover-navigation-system

rover.py → Rover movement logic
main.py → Program execution
input.txt → Sample input
README.md → Documentation
requirements.txt → Python version


How to Run

Clone the repository:

git clone https://github.com/yourusername/rover-navigation-system.git

Move into the project directory:

cd rover-navigation-system

Run the program:

python main.py


Design Approach

Object Oriented Programming (OOP) is used to model rover behavior and command execution.


Author

Backend Developer Internship Assignment
Jivansh Anand

About

Backend implementation of the Mars Rover navigation problem using Python and Object-Oriented Programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages