Rock-paper-scissors: Difference between revisions
m
→{{header|Vlang}}
Thundergnat (talk | contribs) 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 {
pi = os.input('Play: ').str()
if typeof(pi).name != 'string' || pi.len != 1 {break}
|