H
harbintyler
I was wondering if anyone knows how to write a tic tac toe game in c++?
I was wondering if anyone knows how to write a tic tac toe game in c++?
I was wondering if anyone knows how to write a tic tac toe game in c++?
Jim said:Yes.
I got to do this for a final in my C++ class and to be honest i'm
completely clueless. Could you please enlighten me?
* (e-mail address removed):
Start by writing a "guess a random integer number by being informed
whether each guess is too low or high or correct" program A, just to get
a feel for how it is to write an interactive program.
Then write a program B that systematically solves this problem on its
own, acting like the user; no theory needed, just common sense.
Then write a program C that let's the user solve a simple problem such
as crossing a river in a boat with limited capacity (two most popular
variants being 3 nuns and 3 cannibals, and farmer+goat+wolf+wheat).
Then write a program D that solves this problem on its own; you'll need
to look into min-max algorithm.
I got to do this for a final in my C++ class and to be honest i'm
completely clueless. Could you please enlighten me?
I got to do this for a final in my C++ class and to be honest i'm
completely clueless. Could you please enlighten me?
Jeremy said:No, sadly no one has yet been able to solve the so called 'tic-tac-toe'
paradox. Despite my best efforts during 12 years of research, I have
still not come up with a satisfactory solution. There is currently a
group of scientists at MIT, who claim to be close to a solution, you
may want to contact them at (e-mail address removed).
Yes.I was wondering if anyone knows how to write a tic tac toe game in c++?
Alf P. Steinbach said:Then write a program E that let's the user place dots and crosses on the
tic-tac-toe board.
Then write a program F where the user plays tic-tac-toe against the
computer (since 3x3 tic-tac-toe is easily analyzed completely on paper
there's no real need to use e.g. min-max, but probably easiest to do).
I got to do this for a final in my C++ class and to be honest i'm
completely clueless. Could you please enlighten me?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.