Skip to main content
added 9 characters in body
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 25
  • 52

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

The program can be tested herehere

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

The program can be tested here

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

The program can be tested here

added online test link
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 25
  • 52

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

The program can be tested here

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_

The program can be tested here

found some ways to get the code shorter
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 25
  • 52

Golfscript 8080 65

6rand):v;'^;'-'5*:$n[[{6&}{;0}{4&}]'5*n+:u[{6=}{1&}{6=}]u_[^6&0^4&^6=].^1&+-1%]1%+3/{'|'\{v\~'o'''o'' 'if'if+}%n'|'\/'|'n}%$/_

Golfscript 80

6rand):v;'-'5*:$n[[{6&}{;0}{4&}]:u[{6=}{1&}{6=}]u-1%]{'|'\{v\~'o'' 'if}%n'|'\}%$

Golfscript 80 65

6rand):^;'-'5*n+:_[^6&0^4&^6=].^1&+-1%+3/{'|'\{'o'' 'if+}/'|'n}/_
Source Link
Cristian Lupascu
  • 8.7k
  • 2
  • 25
  • 52
Loading