Reputation: 24998
I am reading a chapter I found online on how to add AI to a game of tic tac toe. Somewhere in between they have some pseudo code fragments like these:
to checkwin :candidate :mysquares :free ;; old program
if memberp first :candidate :free ~
[output check1 butfirst :candidate :mysquares]
if memberp last :candidate :free ~
[output check1 butlast :candidate :mysquares]
if memberp first butfirst :candidate :free ~
[output check1 list first :candidate last :candidate :mysquares]
output "false
end
What language is this ?
What is it trying to convey ?
Upvotes: 1
Views: 84
Reputation: 131
This is a piece of sample code of an implementation of Tic Tac Toe, written in Logo, from Brian Harvey's "Comp Sci Logo V1 2e"
Upvotes: 2