Skip to main content
Tweeted twitter.com/StackCodeGolf/status/678098226780766208
added 12 characters in body
Source Link
Mutador
  • 1.4k
  • 10
  • 15

Draw a program or function that will write to STDOUT n times (each for one step) a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

Draw a program that will write to STDOUT n times (each for one step) a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

Draw a program or function that will write to STDOUT n times (each for one step) a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

edited body
Source Link
Mutador
  • 1.4k
  • 10
  • 15

Every new step the value will be the last value of the walker plus one of these[-2-1,0,1,2](20% chance each). After the new position is printed the program should wait s seconds and the go to the next step. If the step takes the walker outsite the range 01 to 40 it should be just ignored and the walker position stays the same. The number of spaces will always be a number from 0 to 39.

Every new step the value will be the last value of the walker plus one of these[-2-1,0,1,2](20% chance each). After the new position is printed the program should wait s seconds and the go to the next step. If the step takes the walker outsite the range 0 to 40 it should be just ignored and the walker position stays the same. The number of spaces will always be a number from 0 to 39.

Every new step the value will be the last value of the walker plus one of these[-2-1,0,1,2](20% chance each). After the new position is printed the program should wait s seconds and the go to the next step. If the step takes the walker outsite the range 1 to 40 it should be just ignored and the walker position stays the same. The number of spaces will always be a number from 0 to 39.

added 20 characters in body
Source Link
Mutador
  • 1.4k
  • 10
  • 15

Draw a program that will write to STDOUT n times (each for one step) a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

Draw a program that will write to STDOUT n times a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

Draw a program that will write to STDOUT n times (each for one step) a string that contains a dot . at the location of the walker. The program also needs to write a line every s seconds (or wait s seconds after each line).

deleted 3 characters in body
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading