Assignment

This is a discussion on Assignment within the C++ Programming forums, part of the General Programming Boards category; Brain Buster "Brain buster" is a one player game in which an n x m grid of blocks are placed ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    10

    Assignment

    Brain Buster

    "Brain buster" is a one player game in which an n x m grid of blocks are placed on the screen.

    Initially each position on the grid contains a block, and each block is given one of five random colours.

    Two blocks are adjacent if EITHER their row OR column location differs by 1. Two blocks form a group, if they are adjacent and have the same colour. A group of size k, consists of a group of size k-1, which is adjacent to a block with the same colour.

    When the user selects a block, the largest group, to which that block belongs, is highlighted, and the corresponding number of points the user would gain is also showed. If the user confirms that choice, then the group is removed from the grid and the score is increased by k x (k-1), where k was the size of the group. If the user aborts their choice, then the corresponding group should cease to be highlighted.


    Note that, when a group is removed, the blocks above will now occupy the "bottom most" position to fill the gaps created in their corresponding column. If a column becomes empty then all blocks to the right should move to the left to fill the gap created (while maintaining their relative positions to each other).

    The game should terminate when the user chooses to quit or there are no more blocks on the screen.

    Upon termination, the user's score should be displayed.


    Requirements

    * All classes must be separated into .h and .cpp files
    * The solution must use (programmer-defined) linked lists

    Have anyone seen or done such a program before, input is needed.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,183

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu
    By Krush in forum C Programming
    Replies: 17
    Last Post: 09-01-2009, 02:34 AM
  2. Assignment Operator, Memory and Scope
    By SevenThunders in forum C++ Programming
    Replies: 47
    Last Post: 03-31-2008, 06:22 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Help with a pretty big C++ assignment
    By wakestudent988 in forum C++ Programming
    Replies: 1
    Last Post: 10-30-2006, 08:46 PM
  5. Replies: 1
    Last Post: 10-27-2006, 01:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21