Thread: Help on my Assignment Please :C

  1. #1
    Registered User l2krence's Avatar
    Join Date
    Nov 2010
    Posts
    24

    Post Help on my Assignment Please :C

    My task is like creating a mini games like the one on this web > Funschool - Fun Blaster - Flip'em
    but it was actually a tough one although it's seems to be a simple game!
    I had think for 2weeks and the due date is around the corner... Please! Any idea??

    This is the thing i had in my assignment paper.
    Your Assignment:
    • Develop a game with C that will automatically generate a set of board (2 dimension array) with pairs of characters randomly allocated each time the program is run. The user / player will be able to navigate through the board and flip the tile over to see the hidden character and try to find the match within the board.

    Specification:
    • Each square contains the following suggested attributes :
    o a variable to store the character (by using ASCII code)
    o Indicator of whether the tile has been flipped over.
    o Indicator of what to display for the user / player to see.
    o Or any other attributes you think appropriate to your program
    Thus, square can be described as “struct” of array in the C programming language.

    • The information of previous players is stored in a plain text data file. The information of all previous players should be displayed at the beginning of the game. User / player will also be prompted to key in their information to be stored in the text data.

    • You are free to select the size of the array for your game. Minimum requirement of the board size will be 6 by 6.

    • You are free to define the rules of the game, the criteria for winning the game, for the game to be over and evaluation of player performance. Please state the rules and instructions of your game clearly at the beginning of the program.

    • Input to the system is through a DOS command window.

    • Output should be printed in the DOS window as well as in a graphics window (optional) to show the latest layout of the board. For Dos Window, different characters can be used to represent the current position of player and any additional information.

    • The assignment must be written in C using Quincy 2005. Build options must include strict ANSI/ISO compliance, C99 support.

    Procedure
    Use an iterative process (spiral or prototype SDLC) to design and implement a solution to your program. That means
    1. write a small program to do a little bit of the problem
    a. compile and run the small program
    2. next, add a function or two
    a. compile and run the improved program
    3. repeat step 2 until you are finished


    Functionality
    This program must first prompt the user (in the command window) for the next action to be carried out. (Do provide appropriate menu of actions).
    After each action entered by the user, the latest layout of the board will be printed / display.

    The user should be able to terminate the program at any time.

    The program codes MUST be in functions. DO NOT write all the code in the “main()” function.


    Bonus Marks:
    • Any additional functionality other than the specified requirements.

    I really going crazy so please! lend me ur brain :C
    my life is miserable with this..

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    We don't do people's homework here. We expect you to show us your best effort and then if you have specific questions about something you're stuck on we'll do our best to help you learn how to do it.
    If you understand what you're doing, you're not learning anything.

  3. #3
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Study this quote well:

    "The dictionary is the only place where success comes before work". - Vince Lombardi
    1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
    2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
    3. Get rid of conio.h and other antiquated DOS crap headers.
    4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.

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, 09:46 PM
  5. Replies: 1
    Last Post: 10-27-2006, 01:21 PM