CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jan 2011

    What In This Code Is Creating The Symbols ?


    I've Found This Code Online And Would Like To Use It For My School Project, But I Do Not Understand What Part Of This Code Is Creating The Symbols...

    I Will Be Using This Code For My BlackJack Game And This Code Generates The Card...

    What I Don't Get Is What Part Of This Code Generates The Symbols [Hear, Spades & etc.]

    Can Someone Please Explain It To Me ?

    public class Tango{
    public static void main ( String[] arg ) throws Exception{
    String[] cards = new String[52];
    int i=0,v=0;
    for(int k = 0;k<52;k++){

    i = k%13;
    else if(i==1){
    else if(i>=2 && i<11){
    cards[k]= " " + i;
    else if(i==11){
    cards[k]= "J";
    else if(i==12){
    cards[k]= "Q";

    cards[k]= cards[k]+(char)(6)+" ";
    else if(k<26){
    cards[k]= cards[k]+(char)(3)+ " ";
    else if(k<39){
    cards[k]= cards[k]+ (char)(5)+ " ";
    else if(k<52){
    cards[k]= cards[k]+(char)(4)+ " ";

    for (int a=0; a<=cards.length; a++) {
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.