[closed] HW 1.4 move motions

Hi, i don't know if this question has been asked because everytime i try to search the forum gave me 500 error, so here is what i am gonna ask. In the video of homework 1.4 we are given 5 motions[[0,0],[0,1],[0,-1],[1,0],[-1,0]].

So are we suppose to code it so it only handle those 5 motions or are we suppose to handle also these motions -> [[1,1]=>(move down then move right?),[-1,1]=>(move up then move right?),[-1,-1]=>(move up then move left?)] and so on???

asked 27 Feb '12, 21:15

WILLYANTO's gravatar image

WILLYANTO
1926
accept rate: 0%

retagged 28 Feb '12, 15:00

Margarita%20Manterola's gravatar image

Margarita Ma...
3.7k41948

The question has been closed for the following reason "i guess the question is answered" by WILLYANTO 27 Feb '12, 21:48


One Answer:

Diagonal moves aren't necessary. So just those 5 have to be handled.

link

answered 27 Feb '12, 21:17

Conrado%20Silva%20Miranda-2's gravatar image

Conrado Silv...
4.3k72768

ok then, i shall proceed with finishing my code :)

(27 Feb '12, 21:43) WILLYANTO WILLYANTO's gravatar image

If your question was answered, please select it as correct (little checkbox on the left). Thanks!

(27 Feb '12, 21:49) Conrado Silv... Conrado%20Silva%20Miranda-2's gravatar image

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5,185
×219
×53
×10

Asked: 27 Feb '12, 21:15

Seen: 282 times

Last updated: 28 Feb '12, 15:00