How do I add the AI scirpt to the Tic-Tac-Toe Script?

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).

Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators

Locked
Nathan Slavik
Posts: 2
Joined: Tue Nov 04, 2008 5:40 pm
Occupation: Student
Project Question: How do I add the AI to the tict tac toe script?
Project Due Date: Tomarrow
Project Status: I am conducting my experiment

How do I add the AI scirpt to the Tic-Tac-Toe Script?

Post by Nathan Slavik »

What the title said. How? I odn't know where. :(
ChrisG
Former Expert
Posts: 1019
Joined: Fri Oct 28, 2005 11:43 am
Occupation: Research Hydrologist
Project Question: n/a
Project Due Date: n/a
Project Status: Not applicable

Re: How do I add the AI scirpt to the Tic-Tac-Toe Script?

Post by ChrisG »

Hi Nathan,
Welcome to the Ask an Expert Forums. Are you working on this project?
http://www.sciencebuddies.com/mentoring ... p019.shtml
Have you read the section titled "Experimental Procedure"? That will give you some instructions about how to add the AI. Please let us know if you still have problems.
Looking forward to hearing more about your project,
Chris
Nathan Slavik
Posts: 2
Joined: Tue Nov 04, 2008 5:40 pm
Occupation: Student
Project Question: How do I add the AI to the tict tac toe script?
Project Due Date: Tomarrow
Project Status: I am conducting my experiment

Re: How do I add the AI scirpt to the Tic-Tac-Toe Script?

Post by Nathan Slavik »

I did read this section but still am having difficulty with the looping, and the content to get the computer to play. I am wanting to start with a simple program that will allow the computer to put the move in the first open square.

Any suggestions?

Nate
sunbeam
Former Expert
Posts: 15
Joined: Thu Nov 08, 2007 9:57 am
Occupation: PhD Student in Electrical Engineering
Project Question: n/a
Project Due Date: n/a
Project Status: Not applicable

Re: How do I add the AI scirpt to the Tic-Tac-Toe Script?

Post by sunbeam »

Hi Nate,

How are things going on this project? Are you still having trouble?

If you could tell me more details about what is hard to understand, I can help you. Do you already have a tic-tac-toe board working which can handle two players? Make sure this works well first. Then tell me what problems you are having with adding the AI so that you can play against the computer.

Laura
Locked

Return to “Grades 6-8: Math and Computer Science”