I want to develop a logic for tic-tak-toe game using JAVA language(Standalone program only, no UI).
Concept is, game will play between human and machine(Artificial Intelligence).
can you please guide me.
Thanks in advance 🙂
Regards,
Subaan
I want to develop a logic for tic-tak-toe game using JAVA language(Standalone program only, no UI).
Concept is, game will play between human and machine(Artificial Intelligence).
can you please guide me.
Thanks in advance 🙂
Regards,
Subaan
2
Answers
For game playing, the minimax algorithm is usefull. You should be able to find plenty of imformation about it.
tic-tak-toe is so computationally simple, you could just search the whole problem space exhaustively using mini-max.
Here is a post I found using google search detailing how to do this in java. I reviewed the article and it includes :