On 25 Feb 2007 07:10:26 -0800, "Vi***********@gmail.com"
<Vi***********@gmail.comwrote:
>Our instructor had given us a task to create a four-in-a-row game in C+
+(DEV).
I was able to create a 2player human-human game.
but unfortunately our instructor added new details.
to add an AI and make in in a graphical interface...
i really need your help! if there is anyone there who could help me. I
dont know how to make a GUI interface and i dont know how to make AI
programs. We were not taught about this. although this project
deadline is 2 weeks from now, i dont think i could do it. please...
help me!
I agree with Osmium, that looks very difficult for homework.
1) Find out exactly what your instructor meant by "graphical
interface". Are you perhaps intended to use a pre-existing GUI like
QT or WxWidgets?
2) AIs range from the very sophisticated to the very simple. At its
simplest your AI could be just to look for three in a row and either
block it or play at the end depending on whose turn it is. Looking
for a position that created two three-in-a-rows for yourself (or
blocks it for the opponent) would make for a more sophisticated AI.
The (simple) AI part you can probably do if you think about it. I
suggest you get started on that while confirming exactly what
"graphical interface" means. At least with a working simple AI you
will have something to hand in.
rossum