1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Very simple C game

Discussion in 'Programming' started by Silver89, Jan 22, 2010.

  1. #1
    Hi,

    I've been learning the basics of C lately and am looking for a very simple example of a game that I could look at and get to know some more basics.

    If it could run with the bare minimum that would be perfect.

    It doesn't have to be anything advanced, even pong or snake would be good.

    Thanks
     
    Silver89, Jan 22, 2010 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Following is something I had made during my engineering days :)

    Its a tic-tac-toe game :D Haven't looked at the files since then and have forgot almost half of syntax of C now.

    http://www.programmersheaven.com/download/32947/download.aspx


    You can try following things as well, which are little uncommon.
    1. 8 Queen problem simulation.
    2. Draw buttons like windows, its simple, just color combination using graphics.h i guess :)

    hope it gives little more ideas to you..
     
    mastermunj, Jan 22, 2010 IP
    Silver89 likes this.
  3. Testing whiz

    Testing whiz Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can also try to build the "Find the word from the Crossword" game. This are some of the basic games that one can build at the initial level(as people asked to make in tech-fests).
     
    Testing whiz, Feb 3, 2010 IP
  4. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Check this chess game.
     
    NeoCambell, Feb 4, 2010 IP
  5. wineri.es

    wineri.es Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    wineri.es, Feb 4, 2010 IP
  6. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #6
    I know what simple games are .... :confused: I want the source with as little external includes as possible.
     
    Silver89, Feb 7, 2010 IP
  7. ViolentAJ

    ViolentAJ Well-Known Member

    Messages:
    581
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    128
    #7
    Would a console-based (as in the IDE/command line console, not a gaming console) text game work?
     
    ViolentAJ, Feb 8, 2010 IP