Tom's Hardware > Forum > Games General > PC Gaming > Chess - what is syntax and what is semantics?

Chess - what is syntax and what is semantics?

Forum Games General : PC Gaming - Chess - what is syntax and what is semantics?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: rec.games.chess.computer (More info?)

 

Hi!

I wonder what syntax and semantics is in the game of chess?

Perhaps a stupid question but I just saw an explanation of the syntax
and semantics of chess, it was as follows:

"In chess, syntax is knowing the legal moves, semantics knowing how to
play."

Is this true in the _exact_ sense of the words syntax and semantics?

IMHO, there is a formal language governing the game of chess. In formal
languages the syntax is unambigous. For instance: a rook being taken by
a bishop cannot duck or lie to save itself. It is taken. In
programming, by typing something with proper syntax semantic is
created, eg in C:

printf("hello world\n" );

The semantic is that hello world is printed followed by a newline. But
semantics has nothing to do with knowledge. I could well be an idiot
who thought that printf means 'print to file', but what I believe does
not change the semantic.

Any suggestions?
/Sune

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Games General > PC Gaming > Chess - what is syntax and what is semantics?
Go to:

There are 1383 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them