View Single Post
Old March 20th, 2003, 10:27 PM     #7 (permalink)
qball
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
Quote:
but i dont know how to write the computer's moves? how can i make him intelligent?

well, you actually write the code/logic to do this. The program only as intelligent as the code/logic that defines the program.

simple answer:
get really good a ttt. never lose, win OR tie.
then write down what moves you make based upon other player's move(s).
you now have a good logic based rules system to play ttt.

harder answer:
take good logic based rules system and convert to code

basically any programming language can handle the logic.
qball is offline   Reply With Quote