Tic-tac-toe: Difference between revisions
Content added Content deleted
m (fixed typo and rephased slightly) |
m (→{{header|Pascal}}: fixed spelling typo in comment section) |
||
Line 9,599: | Line 9,599: | ||
(* randomize if computer opens, so its not always the same game *) |
(* randomize if computer opens, so its not always the same game *) |
||
if k = 1 then begin |
if k = 1 then begin |
||
best_i := random(3); {Pascal random returns |
best_i := random(3); {Pascal random returns positive integers from 0 to func arg} |
||
best_j := random(3); |
best_j := random(3); |
||
end else |
end else |