Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 31,089 points

Peter C

Favorite Answers37%
Answers136
  • Assembly Language Question?

    Just want to know what this instruction means

    MOVE.L #A, D5

    I know that its a long word moved into D5 but I thought that the hex format has to have the prefix $. Any help should be appreciated.

    1 AnswerProgramming & Design8 years ago
  • blackjack game help in c programming?

    I am trying to make a deck of cards that can be used with a blackjack game. I would like each of the cards to have a value of type int, a name which will be a string and a suit which will be a char. I looked at what the best way of representing each card is and a struct seems to make the most sense.

    01 #include <stdio.h>

    02 #define HEART ((char)0x03)

    03 #define DIAMOND ((char)0x04)

    04 #define CLUB ((char)0x05)

    05 #define SPADE ((char)0x06)

    06

    07 typedef char * string;

    08

    09 struct card{

    10

    11 string name;

    12 int value;

    13 char suit;

    14

    15 };

    I have no problems here. I have tested assigning the values for a single card and they work for me.

    1 struct card king;

    2

    3 king.value = 10;

    4 king.name = "King";

    5 king.suit = SPADE;

    6

    7 printf("The card %s is a %c and holds a value of %d", king.name, king.suit, king.value);

    what i would like is a little instruction that will allow me to write a function that allows me to create a full deck of 52 cards. Any guidance would be much appreciated. Im still to c and have a reasonably good understanding of loops and decisions but im still having trouble getting my head around it.

    3 AnswersProgramming & Design9 years ago
  • JAVA based poker game.?

    I'm thinking of writing a java based poker game. This will only be the code for the design and i'm just asking for some ideas. The game will be for two human players and the poker type is five card with no blinds, opening hands or betting to start with not texas hold 'em. The players will be dealt five cards and then given the option to discard up to 3. So what im really looking for is any ideas on the best way to code how the way the deck is stored, how the hands will be stored (arrays etc.), and error control so that no crads will be duplicated. Just ideas really so that it will help me to practice on my code. Grateful for any help!

    2 AnswersProgramming & Design10 years ago
  • Xbox live 48 hour trail anyone?

    Im bored, looking for a trial out of any new games people might have bought lately!! used up my only one and dont get paid until friday!! was just getting back into battlefield bad company 2 so if anyone has one and plays battlefield id appreciate it, could squad together and level up fast and get the more difficult achievements??

    2 AnswersVideo & Online Games1 decade ago
  • what is the top weapon rating in battlefield bad company 2?

    i have a two gold star rating on the M24 rifle and want to know what comes next, ive seen some guys with a gold weapon icon and a SA rating??

    2 AnswersVideo & Online Games1 decade ago
  • is there a second season of the black donnellys?

    just saw the first season and loved it!! Would be a serious pain in the *** if nbc didnt make a second!?!!?

    2 AnswersDrama1 decade ago
  • Some thing you would like to see in the new CODMW2?

    Lets see some suggestions on some things you guys might like to see in the new COD Modern Warfare 2, or maybe some things you would like to see changed!! Online and offline modes!!

    4 AnswersVideo & Online Games1 decade ago
  • is rsov.com any good?

    does anyone use rsov.com to buy their airsoft guns and is it any good! I live in ireland and buying them over here is really expensive, the cost of the guns and the tax plus the shipping works out much cheaper! Thanks!!

    1 AnswerOther - Games & Recreation1 decade ago