2 Players? How to?

This is a discussion on 2 Players? How to? within the C++ Programming forums, part of the General Programming Boards category; I'm making a program that will keep score for a game of Darts, 301 and Cricket for myself. If I ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Location
    Freeport, IL
    Posts
    32

    2 Players? How to?

    I'm making a program that will keep score for a game of Darts, 301 and Cricket for myself. If I want to keep score for 2 player how should I look at doing this? Do I need threads or can I do it with just basic while or if loops?


    Thanks

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    You don't need threads just to store multiple sets of data. You should use arrays, though.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Freeport, IL
    Posts
    32
    Thats what I figured, but just wanted to make sure I was not moving in the wrong direction.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dice game: How to handle 2 players and separate totals?
    By crazychile in forum C Programming
    Replies: 7
    Last Post: 10-20-2008, 01:01 AM
  2. Structure of a program
    By stef569 in forum C Programming
    Replies: 6
    Last Post: 12-03-2006, 12:13 AM
  3. Player's input in Scrabble?
    By vex_helix in forum C Programming
    Replies: 5
    Last Post: 03-26-2004, 02:38 AM
  4. mp3 players vs mp3 cd players
    By Geo-Fry in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-06-2003, 09:22 PM
  5. increasing players life
    By lambs4 in forum Game Programming
    Replies: 5
    Last Post: 10-20-2002, 05:50 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21