An SO User
An SO User

Reputation: 24998

What language is being used here?

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

Answers (1)

Craig Nichols
Craig Nichols

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"

http://books.google.com.au/books?id=BmuqURW0G5UC&lpg=PA114&ots=qZctpJejJa&dq=butfirst%20candidate%20free&pg=PA114#v=onepage&q&f=false

Upvotes: 2

Related Questions