Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39
  1. #1
    C.I.A.
    Join Date
    Apr 2009
    Gender
    Female
    Posts
    8,812
    Blog Entries
    39

    Default Need your suggestions -- C programming.


    In completion for my 1st sem sa akong CCS121 (Programming 1),
    we have to make a game (project). And mine's individual.

    I thought of making Deal or No Deal.
    But di jud ko kamao mu randomize sa values sa akong briefcases,
    di ko kamao mulayout sa akong briefcases, sa logical part about
    the offers to be made, lisuran ko -- newbie pajud ko. LOL.

    Usa pa taken na ang mga games like Hangman,
    Trivia Game, Snake. And I feel like I'm left with nothing else to do.
    Unsa kaha lain game nga sayon ra?

    The lessons we took up were Functions and Strings.
    dira pa mi kutob

  2. #2
    http://en.wikipedia.org/wiki/Binary_..._guessing_game simple ra kau na siya pero nice kaau na nga algo

  3. #3
    Elite Member
    Join Date
    Jun 2010
    Gender
    Male
    Posts
    1,018
    I think you don't have to make the UI nice since 1st year pa mo...mura lang sa og dos mode nga deal or no deal. Mao ni akong sayop sa una, nasacrifice nako ang whole program just because of graphics.

    As a sample, You can line up the numbers by giving them a 5 spaces interval then go to the next line after 5 numbers.

    you can line up the entire flow of the game into functions step by step, without thinking of the actual code.

    The offer is actually from a computation or an equation. you can try to research for the actual equation

    Lastly, random functions always exist, naa na siya algorithm to isolate the available values allowed.

    Mao pa ako mahuna-hunaan for now.

  4. #4
    Tic Tac Toe...

    Simpliest Gave Ever!

  5. #5
    If nahan ka Challenging nya old school kay

    Space Impact!!! ako classmayt pag college kay nag contest me.. pildi ko.. lisod ayo..

  6. #6
    interesting project nikki.

    Sayon ra ni nikay! Kaya ra ni nmo oi!

    First, set the ground rules sa game. Identify the the constant values and if possible determine also the variables to be use in the program.

    Next, lay out the logic of the game and how it interacts with the user. If you are the type of programmer that codes directly, then hammer the keyboard right away. But it would greatly help if you would lay it out on flowchart or any other tools that might help you visualize the logic of the game.

  7. #7
    @kurdapia.nikki
    ok ra kaayu na imo project miss, ayaw lang kahadlok, mura ra nag minesweeper ang logic ana.
    Before you start, sakto c bai ChaosOrg, ilaydown sa imo rules and flow sa imo program, isuwat sa cya para klaru tanan.

    then if nasulat na nmo bisag dli tanan basta naa ang core idea, start rewriting your game in a piece of paper but this time write it as a flow chart.

    then post lang balik dri if mana ka, im sure daghan mga pips nahan motabang nmo if naa naka sa coding na part.

    for a start ill give you a hint;
    all games do have their game loop, inside gameloop you can find the input, updates and logic processing.
    example

    int main(void)
    {

    while(1){
    //display UI
    //Ask for input
    //process logic based on input input
    //Update UI
    }

    return 0;
    }

    If maglibog ka, post lang dri balik or send me pm, nahan ko motabang specially programming games, hehehe

  8. #8
    hahaha nag programming diay ka sis... try lang gud google is the answer

  9. #9
    C.I.A.
    Join Date
    Apr 2009
    Gender
    Female
    Posts
    8,812
    Blog Entries
    39
    HAHAY. Ang UI ani mao'y kapoy. Ugma nako mu defend and I'm not even halfway there.

    Kuwang pa kaayo ang program:
    1.) Algo para sa offer sa banker
    2.) set ug limits para sa ma open nga briefcases per round
    3.) conditions and many more

    mao pani

    Last edited by kurdapia.nikki; 10-07-2010 at 05:03 PM.

  10. #10
    Quote Originally Posted by kurdapia.nikki View Post
    In completion for my 1st sem sa akong CCS121 (Programming 1),
    we have to make a game (project). And mine's individual.

    I thought of making Deal or No Deal.
    But di jud ko kamao mu randomize sa values sa akong briefcases,
    di ko kamao mulayout sa akong briefcases, sa logical part about
    the offers to be made, lisuran ko -- newbie pajud ko. LOL.

    Usa pa taken na ang mga games like Hangman,
    Trivia Game, Snake. And I feel like I'm left with nothing else to do.
    Unsa kaha lain game nga sayon ra?

    The lessons we took up were Functions and Strings.
    dira pa mi kutob
    Basin magamit ni nimo..all you need is a randomizer function in C!

    /* NOTE: This code has been coded with Borland C/C++ 3.0 */
    //libraries
    #include <stdio.h> //defines scanf() and printf()
    #include <stdlib.h> //defines rand()
    #include <time.h> //defines time() and is needed for randomize()
    #include <conio.h> //defines clrscr() and getch()

    //main
    int main()
    {
    //declaring a variable
    int random;
    //clearscreen
    clrscr();

    randomize();
    random = random(100);

    //display result
    printf(”\nRandom numbers in the range 0-99: %d”,random);

    //wait for a key to be pressed by user before program exits
    getch();

    }//end main

    -- sample ra na cya but since taga sci hi man ka... I know dali ra ka maka gets unsaon paggamit ani..

  11.    Advertisement

Page 1 of 4 123 ... LastLast

Similar Threads

 
  1. need your suggestions guys
    By judz in forum Computer Hardware
    Replies: 10
    Last Post: 01-04-2008, 08:15 AM
  2. i need your suggestion my fellow istoryan
    By businessminded in forum Computer Hardware
    Replies: 2
    Last Post: 12-03-2007, 05:16 PM
  3. Need your suggestions - where to donate?
    By misfit in forum General Discussions
    Replies: 1
    Last Post: 10-09-2007, 04:58 PM
  4. need your suggestions for Upgrading
    By rudjard in forum Computer Hardware
    Replies: 17
    Last Post: 01-05-2007, 04:30 PM
  5. Need your suggestions. WIFI SMART / MERIDIAN INTERNET sharing.
    By nutjugger in forum Networking & Internet
    Replies: 6
    Last Post: 02-14-2006, 08:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top