Thread: Generate a set of random numbers on a board(2-d array) like candy crush

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    38

    Generate a set of random numbers on a board(2-d array) like candy crush

    hi, i need help on my assignments on making a program like candy crush but it is called as number crush. Thanks..



    Can anyone slightly guide me the way to build it. THANKS!

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I'm not familiar with the game. Thinking of the board, what kind of a loop do you think would be a good one to use for this?

    Naturally, you'll include stdlib.h and use rand(), most probably.

    There is a very good C tutorial tab at the top center portion of this website. Maybe run through it, and pick up a few things you need? We can assist in a C code problem, but the assignment, especially getting started, is up to you.

    Give it a try!

  3. #3
    Registered User
    Join Date
    Oct 2013
    Posts
    38

    How to put array in this?

    I did some generation of random numbers code. now im stuck with how to put the array of 9x9 in the statement of loop..
    Attached Files Attached Files
    • File Type: c NC.c (638 Bytes, 274 views)

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Seems the same as your other thread.
    How to add my array size of 9 x 9 in it. THANKS!
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. King (Candy Crush Saga) is hiring superstar C++ Developers!
    By King games in forum Projects and Job Recruitment
    Replies: 5
    Last Post: 10-17-2013, 02:15 PM
  2. the algorithm used in c++ to generate random numbers
    By karim tarbali in forum C++ Programming
    Replies: 7
    Last Post: 02-17-2012, 08:01 AM
  3. How to generate random numbers the same everytime
    By lehe in forum C++ Programming
    Replies: 11
    Last Post: 04-09-2009, 06:00 PM
  4. How to generate random numbers between 65 and 75
    By chottachatri in forum C Programming
    Replies: 19
    Last Post: 03-02-2008, 06:24 PM
  5. Generate random numbers in Lucky7 project using C#
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 04-11-2003, 11:03 PM