Rock-paper-scissors: Difference between revisions

m
m (syntax highlighting fixup automation)
Line 6,529:
mut a_choice := rand.intn(3) or {0} // ai choice for first play is completely random
for _ in 0..6 {
// get player choice
pi = os.input('Play: ').str()
if typeof(pi).name != 'string' || pi.len != 1 {break}
291

edits