Thread: 25 Card game

  1. #1
    Registered User
    Join Date
    Dec 2018

    25 Card game

    I have to create the Irish Game 25 in C Programming. I have started this several times, and all of m attempts seem to be incorrect. I am hoping for some help to start this project, as in a way to have the cards, shuffle them, and deal them out to players. The cards dealt must be accessible to players again in some other form for them to select later to "play" the cards in their hand.
    Attached Images Attached Images

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    > I have started this several times, and all of m attempts seem to be incorrect.
    And what have you learnt from that experience?

    Did you begin each attempt with nothing more that a vague idea and an empty source file in your editor?

    each student should submit a document explaining the various design decisions that were
    made during the project and how their code works.
    For any non-trivial program, you need to begin with this stage first.

    Print out your assignment (several times) and start scribbling some notes on it.
    25 Card game-designideas-jpg
    Get some blank paper, and make more detailed notes for complicated ideas.
    Break complicated ideas down into a series of simpler ideas.

    Imagine what each bit of functionality needs in terms of information, and what results it produces.

    Mentally walk though your ideas to see if everything generally lines up. You can do this very quickly compared to spending days writing code only to find out that you hit a road block.

    You don't need to labour over every last detail, but you need to have some measure of confidence that you're at least heading in the right direction.

    A development process
    Also, don't try and write the whole thing at once.
    For example, 'shuffle' and 'deal' can be written and tested in isolation.

    Plan an implementation strategy that allows you to build the whole program in a series of steps.

    Make backups of code when you finish a significant step.
    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. War card game
    By bigzcoder in forum C Programming
    Replies: 3
    Last Post: 04-19-2012, 09:38 PM
  2. Card game war
    By Dr Saucie in forum C Programming
    Replies: 3
    Last Post: 02-11-2010, 11:25 PM
  3. my upcoming UNO card game :)
    By Hussain Hani in forum Game Programming
    Replies: 5
    Last Post: 01-24-2008, 01:19 AM
  4. Card game help
    By aaroroge in forum Game Programming
    Replies: 9
    Last Post: 07-16-2005, 06:37 PM
  5. card game
    By rugger78 in forum C++ Programming
    Replies: 4
    Last Post: 12-07-2004, 04:50 PM

Tags for this Thread