有人可以给我一些关于如何开始这项任务的指导方针吗? [英] Can someone give me some guide lines on how to start with that task?

查看:71
本文介绍了有人可以给我一些关于如何开始这项任务的指导方针吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以给我一些指导如何开始这个任务

------------------------- -------------------------------------------------- -

一群手工制造的机器人将参加年度机器人大战比赛。每个机器人将被放置在一个矩形战斗场内,并使用内置的计算机系统在竞技场周围导航。

机器人的位置和航向由x和y共同表示纵坐标和代表四个基本罗盘点之一的字母。竞技场被划分为网格以简化导航。示例位置可能是0,0,N,这意味着机器人位于左下角并朝北。

为了控制机器人,比赛组织者提供了一个简单的发送控制台一系列字母到车载导航系统。可能的字母是'L','R'和'M'。 'L'和'R'使流动站分别向左或向右旋转90度而不从其当前点移动,而'M'表示向前移动一个网格点并保持相同的航向。假设直接从(x,y)向北的平方是(x,y + 1)。

INPUT:

第一行输入是右上角坐标在竞技场中,左下角坐标假定为(0,0)。

输入的其余部分是与已部署的机器人有关的信息。每个机器人有两行输入 - 第一行给出机器人的位置,第二行是一系列指令告诉机器人如何在场地内移动。

位置由两个整数和一个组成由空格分隔的字母,对应于x和y坐标以及机器人的方向。每个机器人将按顺序完成移动,这意味着第二个机器人将不会开始移动,直到第一个机器人完成移动。

输出:

每个机器人的输出应该是它的最终坐标和标题。





我的尝试:



我正在尝试用C#开始编码这个控制台应用程序我真的不知道怎么开始

解决方案

你需要分析一下要求。用一张纸模拟问题是一个很好的开始,了解它是如何工作的,程序将遵循相同的步骤。



我们不做你的HomeWork。 br $>
HomeWork不会在乞求其他人做你的工作时测试你的技能,它会让你思考并帮助你的老师检查你对你所学课程的理解以及问题你应用它们。

你的任何失败都会帮助你的老师发现你的弱点并设定补救措施。

所以,试一试,重读你的课程并开始工作。如果您遇到特定问题,请显示您的代码并解释这个问题,我们可能会提供帮助。



作为程序员,您的工作是创建算法解决特定问题,你不能依赖别人永远为你做,所以有一段时间你必须学会​​如何。而且越快越好。

当你要求解决方案时,就像试图通过培训其他人来学习开车一样。

创建算法基本上是找到数学并做出必要的调整以适应你的实际问题。



一个有趣的链接,让你开始一个新项目:系统开发生命周期 - 维基百科 [ ^ ]



- 掌握一些分析方法, Dijkstra自上而下方法是一个好的开始。

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 [ ^ ]



[更新]

引用:

多数民众赞成不正确它不是家庭作业什么都没有教过它只是一个任务我有兴趣了解如何开始



即使是由你自己分配,它是家庭作业。 HomeWorks旨在让您练习所教授的课程。由于课程与HomeWorks相匹配,您需要在HomeWorks上学习或找到与您所教课程相匹配的正确课程或练习。

引用:

头脑风暴没有做某人家庭工作!我需要更好的指导



如果你不懂课程,请问老师。



[更新]

引用:

有人可以给我一些关于如何开始这项任务的指导方针吗?


根据最新消息,答案现在是:

- 学习编程。


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

解决方案

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.


这篇关于有人可以给我一些关于如何开始这项任务的指导方针吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆