Question:

How do you create a c tic tac toe program using only stdlib.h and stdio.h?

by  |  earlier

0 LIKES UnLike

hi!! I was wondering how to create a player vs computer tic tac toe program using visual c while only using stdlib.h and stdio.h?

 Tags:

   Report

2 ANSWERS


  1. You cannot create it that easily.


  2. Since you'd be limited in your interface, easiest way would be a loop to display the current grid (depicted internally either by an array or 9 separate variables) with the spaces numbered 1-9. When the player enters a choice, verify that it's not already taken and check for a win. The tough part is developing the AI for the computer player - especially if you want to give it differing levels of skill.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.