By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,406 Members | 888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,406 IT Pros & Developers. It's quick & easy.

NEED Help on my project in school

P: n/a
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!

Feb 25 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<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!
That sounds absurdly impossible to me. If you met the prerequisites for the
course, there should be other students in the same boat. Bring up your
concerns in class or get a delegation together and visit the instructor
during his office hours.
Feb 25 '07 #2

P: n/a
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

Feb 27 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.