Y
Hacker News
new
|
ask
|
show
|
jobs
by
gus_massa
1147 days ago
choices = ['rock', 'paper', 'scissors'] computer_choice = choices[random(-1,3)]
That -1 is very strange. Both extremes are open?
1 comments
sandes
1147 days ago
I just changed
https://github.com/sandes/LineONE/commit/987abc6000df5a836f1...
link
gus_massa
1146 days ago
In that example, one of the lines of codes is too long and when the program is run the editor does not open the output (black) window. (I tried all (most of) the other examples and they open the results window correctly.)
link