Question:

I made a Tic-Tac-Toe game in VB .NET but I am wondering if is at all possible to make a computer player

by  |  earlier

0 LIKES UnLike

I made a Tic-Tac-Toe game in VB .NET but I am wondering if is at all possible to make a computer player

 Tags:

   Report

3 ANSWERS


  1. Yes. Tic-Tac-Toe is a small game in terms of the total number of moves. So one method is to manually assign a move to every possible board layout. This, if done correctly, will guarantee a tie or a win. If you would rather do it in a more sophisticated way search online for game trees and ai.


  2. you could make a never-lose computer. there's like 400 possibilities tho

  3. sure you can make a computer player. The trick is to make a 'good' compuer player :-).  

    1. You could make the computer choose a random empty square

    2. You could make the computer choose to 'block' when the opponent is about to win.

    3. You could make the computer choose rows/columns already already chosen by computer previously.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions