Tic-tac-toe: Difference between revisions

Content deleted Content added
Roryokane (talk | contribs)
→‎{{header|Groovy}}: fix grammar in introduction; remove blank lines around code
Roryokane (talk | contribs)
m change “loose” to “lose” in three places
Line 4,576:
[s (my-move S m)])
(cond
[(my-win? s) (/ 1 i)] ; more close wins and loosesloses
[(my-loss? s) (/ -1 i)] ; have bigger weights
[(draw-game? s) 0]
Line 4,937:
</pre>
 
With use of memoization it is easy to train automatic players so that they would never looselose and play very fast.
 
=={{header|REXX}}==
Line 5,583:
b3 = val(mid$(b$,3,1))
if box$(b1) = "O" and box$(b2) = "O" and box$(b3) = "O" then
print "You LooseLose!"
goto [playAgain]
end if