Thread: Master mind

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    4

    Master mind

    Hello! Im just taking Computer Science and one of our projects is to create a two player version of the Mastermind game....

    anyway my question is how can I allow the user to enter text from within the interface?

    example:

    Player1_____________________Score| Player2_______________________Score|
    |*enter answer here | | *enter answer here |
    |__________________________|____|_________________ _________________|
    any help would be awesome... thanks!

  2. #2
    Registered User
    Join Date
    Nov 2010
    Posts
    4
    Sorry for the example ) but i hope you guys get what i mean

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Do you really want a form like that, or will you be satisfied with an interactive prompt where you prompt player 1 for the answer, then prompt player 2, etc.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    4
    Quote Originally Posted by laserlight View Post
    Do you really want a form like that, or will you be satisfied with an interactive prompt where you prompt player 1 for the answer, then prompt player 2, etc.
    Its required for us

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Master Mind
    By siavoshkc in forum C# Programming
    Replies: 5
    Last Post: 09-18-2006, 06:26 AM
  2. Rtfm
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-13-2003, 05:19 PM
  3. WANTED: Contest Master
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-23-2003, 10:15 PM