Thread: Please help me in making a mini game with c++

  1. #1
    Registered User
    Join Date
    Mar 2015
    Posts
    3

    Unhappy Please help me in making a mini game with c++

    Guys, please help me on this.
    I want to create a game that will test the attention and mind flexibility of the user.So the challenge is The user will be given 50 rounds, and each round should generate a random combination of text and words.Then the user must Press 'Y' if the UPPER CASE text spells out a color that match the BACKGROUND. But if the text are in LOWERCASE the user must press 'N'.(Note: you can change the keys to any key from the keyboard if you wish to)
    Then I also want my program to record the high score each time the program prompts the user if he/she wishes to play again.
    I also want to control the combinations by NOT allowing the text color and background color to be the same.
    I also want the combination to generate an AVERAGE of 50% correct combination and 50% wrong combinations. The I want to use is only Red, Blue and Green
    HIGH SCORE Determinants:
    1. Accuracy ( (Number of corrects / 50 ) * 100% ) - The higher the better.
    2. Time in seconds (Time Ended - Time Started) - the lower the better.
    Computation for high score: 10 000 * ( (Accuracy) - (2 x total Attempts - Time) )

    I really need help, I dont know where to start.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,736
    All programs start with pencil and paper.

    Write down the big steps - say at most 4 on a side of A4 paper, well spaced out.
    Then you start refining the details of each one.

    For example
    Display text
    - refines to display text in a FG/BG colour
    -- refines to display text in different FG/BG colours


    A development process
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2015
    Posts
    3
    Can't you give me like sort of things, like codes? Just to help me up.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,736
    Sure, why not - here, this is how it begins
    Code:
    int main ( ) {
      return 0;
    }
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Mar 2015
    Posts
    3
    Someone, please help.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,736
    Announcements - C++ Programming

    Just how did you manage to write your previous program to come over all helpless all of a sudden?

    You need to show some effort before anyone here is just going to give you a whole load of code just for showing up and begging.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Mar 2015
    Posts
    24
    Quote Originally Posted by Salem View Post
    Sure, why not - here, this is how it begins
    Code:
    int main ( ) {
      return 0;
    }
    lolololololololololol

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. mini game - please feedback on code design
    By CoffeCat in forum C++ Programming
    Replies: 17
    Last Post: 06-13-2012, 02:42 AM
  2. Mini Game
    By bonett09 in forum C Programming
    Replies: 25
    Last Post: 01-02-2012, 02:18 PM
  3. need some help to upgrade a mini game in C
    By Exutus in forum C Programming
    Replies: 2
    Last Post: 11-23-2009, 12:10 AM
  4. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 04:58 AM
  5. Help on game making
    By rtyn in forum Game Programming
    Replies: 4
    Last Post: 07-31-2008, 07:25 PM