Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link

A rover’s position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.

In order to control a rover , NASA sends a simple string of letters. The possible letters are ‘L’, ‘R’ and ‘M’. ‘L’ and ‘R’ makes the rover spin 90 degrees left or right respectively, without moving from its current spot. ‘M’ means move forward one grid point, and maintain the same heading.

A rover’s position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.

In order to control a rover , NASA sends a simple string of letters. The possible letters are ‘L’, ‘R’ and ‘M’. ‘L’ and ‘R’ makes the rover spin 90 degrees left or right respectively, without moving from its current spot. ‘M’ means move forward one grid point, and maintain the same heading.

A rover’s position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.

In order to control a rover , NASA sends a simple string of letters. The possible letters are ‘L’, ‘R’ and ‘M’. ‘L’ and ‘R’ makes the rover spin 90 degrees left or right respectively, without moving from its current spot. ‘M’ means move forward one grid point, and maintain the same heading.

Tweeted twitter.com/StackCodeReview/status/1113592096659783680
Post Reopened by 200_success, Sᴀᴍ Onᴇᴌᴀ , alecxe, Stephen Rauch, Jamal
deleted 77 characters in body; edited tags
Source Link
200_success
  • 145.6k
  • 22
  • 190
  • 479

I have written a simplified version of the Mars Rover challenge in Ruby. I would like to try and rewrite it in JavaScript. Before that, would youPlease review it for best coding practices.

Code

I have written a simplified version of the Mars Rover challenge in Ruby. I would like to try and rewrite it in JavaScript. Before that, would you review it for best coding practices.

Code

I have written a simplified version of the Mars Rover challenge in Ruby. Please review it for best coding practices.

Semantically, questions are under a level 1 heading, so their subheadings are level 2 (and those can have level 3 subheadings); this contrasts with answers, which are under a level 2 heading and get level 3 subheadings.
Source Link
mdfst13
  • 22.4k
  • 6
  • 34
  • 70

I have written a simplified version of the Mars Rover challenge in Ruby. I would like to try and rewrite it in JavaScript. Before that, would you review it for best coding practices perhaps and provide any advice about how to recode it JavaScript.

Working Code

Code

I have written a simplified version of the Mars Rover challenge in Ruby. I would like to try and rewrite it in JavaScript. Before that, would you review it for best coding practices perhaps and provide any advice about how to recode it JavaScript.

Working Code

I have written a simplified version of the Mars Rover challenge in Ruby. I would like to try and rewrite it in JavaScript. Before that, would you review it for best coding practices.

Code

Link to full challenge and short description added.
Source Link
Loading
just trying to make it relevant to Code Review 💙💙💙
Source Link
Loading
Post Closed as "Not suitable for this site" by Jamal
Source Link
Loading
lang-rb

AltStyle によって変換されたページ (->オリジナル) /