Solved

Guessing Game

Posted on 2004-10-11
3
674 Views
Last Modified: 2012-05-05
I need to write a simple game that guesses an animal accoring to users input. It uses a "binary" tree (left, right, parent pointers) to build up a database. Program should be implemented using structs (not classes). Starts with a question"Does it have 4 legs" if Yes program guesses "Dog" if No "Bird", than prompts for another input. Im late on assignment, so I need help please!!!
0
Comment
Question by:Lana_K
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 12284585
Hi Lana_K,
We don't do your homework for you. Start coding, and if you have specific questions, come back.

Cheers!

Stefan
0
 

Author Comment

by:Lana_K
ID: 12291376
I don't need a code for the whole program I need ideas to make it stand out ! Suggestions on better implementations, any ideas to how to make the console more interesting. I already tried to make test red, but so far cant figure out how to make it work. I need a creative approach to an ordinary problem, NOT to do my homework.
0
 
LVL 11

Accepted Solution

by:
bcladd earned 500 total points
ID: 12297865
Console text color code: http://www.codeguru.com/Cpp/W-D/console/article.php/c3959/ (see http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/Q_21136494.html for more comments on that).

Other interesting idea: Be able to give all the facts you have on the animal. I am assuming that your program learns? That is if you guess dog and I say NO you ask for the animal and a yes/no question that can tell a "cat" from a "dog" and then your question tree grows. Take a look at http://www.guessmaster.com/animal.asp for some of the possiblities.

If you have code questions, feel free to share your code and we would be happy to comment.

-bcl

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question