skip to Main Content

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


  1. For game playing, the minimax algorithm is usefull. You should be able to find plenty of imformation about it.

    Login or Signup to reply.
  2. 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 :

    • detailed code of how to get it working
    • great images of how to imagine and picture the computation
    • step by step conceptual walk through of how the problem can be solved
    • it is command line, like you asked
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search