Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can someone give me some guide lines on how to start on this Task
----------------------------------------------------------------------------
A fleet of hand built robots are due to engage in battle for the annual “Robot Wars” competition. Each robot will be placed within a rectangular battle arena and will navigate their way around the arena using a built-in computer system.
A robot’s location and heading is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The arena is divided up into a grid to simplify navigation. An example position might be 0, 0, N which means the robot is in the bottom left corner and facing North.
In order to control a robot, the competition organisers have provided a console for sending a simple string of letters to the on-board navigation system. The possible letters are ‘L’, ‘R’ and ‘M’. ‘L’ and ‘R’ make the rover spin 90 degrees to the left or right respectively without moving from its current spot while ‘M’ means move forward one grid point and maintain the same heading. Assume that the square directly North from (x, y) is (x, y+1).
INPUT:
The first line of input is the upper-right coordinates of the arena, the lower-left coordinates are assumed to be (0, 0).
The rest of the input is information pertaining to the robots that have been deployed. Each robot has two lines of input - the first gives the robot’s position and the second is a series of instructions telling the robot how to move within the arena.
The position is made up of two integers and a letter separated by spaces, corresponding to the x and y coordinates and the robot’s orientation. Each robot will finish moving sequentially, which means that the second robot won’t start to move until the first one has finished moving.
OUTPUT:
The output for each robot should be its final coordinates and heading.


What I have tried:

I am trying to start Coding this Console application in C# I Really dont know how to Start
Posted
Updated 23-Feb-17 11:27am
Comments
Graeme_Grant 23-Feb-17 17:10pm    
Sounds like a homework project to me... These things are based on what you are taught to check how you are learning.

Where to start? Break down the requirements into smaller steps. Then build a logic map. Now you are ready to start coding.
Member 10571077 23-Feb-17 17:41pm    
Thanks
Graeme_Grant 23-Feb-17 17:15pm    
If you wrote the requirement, then it should be simple as you already know what is required.
[no name] 23-Feb-17 17:14pm    
Learn C#
Read the description
Break the tasks down into smaller tasks
Write code
Test
Fix bugs
And yes it is homework. It's homework you assigned yourself.
Member 10571077 23-Feb-17 17:40pm    
Brain storming is not doing someones Home work! i needed better guidance

Thank you anyway

1 solution

You need to analyze the requirements. Simulating the problem with a sheet of paper is a good start to understand how it works, the program will follow the same steps.

We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.

As programmer, your job is to create algorithms that solve specific problems and you can't rely on someone else to eternally do it for you, so there is a time where you will have to learn how to. And the sooner, the better.
When you just ask for the solution, it is like trying to learn to drive a car by having someone else training.
Creating an algorithm is basically finding the maths and make necessary adaptation to fit your actual problem.

An interesting link to get you started on a new project: Systems development life cycle - Wikipedia[^]

- Master some analyze methods, Dijkstra Top-Down method is a good start.
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]

[Update]
Quote:
Thats not correct its not home work nothing has been taught it`s just a task i was interested in getting an idea of how to Start

Even assigned by yourself, it is HomeWork. HomeWorks are done to make you practice on lessons you have been taught. Since lessons and HomeWorks are matched, you need to learn or find the right lessons or practice on HomeWorks that match the lessons you have been taught.
Quote:
Brain storming is not doing someones Home work! i needed better guidance

If you don't understand your lessons, ask your teacher.

[Update]
Quote:
Can someone give me some guide lines on how to start with that task?

In light of last news, the answer is now:
- Learn programming.
 
Share this answer
 
v4
Comments
Valery Possoz 23-Feb-17 17:55pm    
what about this link?
https://github.com/samkelleher/node-robot-wars
Just read the readme.md
Patrice T 23-Feb-17 18:30pm    
You found where it come from. And after ?
Valery Possoz 23-Feb-17 18:58pm    
What do you mean "And after?"
It's on github with the full source! The question has nothing to do with homework or whatever, it's obviously some guy that has no clue about anything relating to code...

But it's nice of you to take some time to answer him/her.
[no name] 23-Feb-17 19:04pm    
"has nothing to do with homework or whatever", it most certainly does. Just because a teacher did not assign it in a classroom doesn't mean that it's not homework. The OP decided to assign the homework assignment to himself. It's still homework not matter if the OP just decided to do it or a teacher assigned it. No difference.
Patrice T 23-Feb-17 19:09pm    
'What do you mean "And after?"'
Ok you found the text on gitHub, but it does not change anything in the question or in my answer.
'But it's nice of you to take some time to answer him/her.'
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900