三国殺「稲妻」


        //     
        int blood = 0;
        blood = arc4random()%3+3;
    
        //        ,   1    2    3    4   
        int pokerColour = 0;
        pokerColour = arc4random()%4+1;
    
        //     ,         
        int pokerNum = 0;
        pokerNum = arc4random()%13+1;
        printf("*  :
"); printf(" 1 2 3 4
"); printf(" : , 2-9
"); printf("
"); printf("* :
"); printf(" = %d
",blood); if (pokerColour == 1 && pokerNum >= 2 && pokerNum <= 9) { printf(" %d, %d
",pokerColour,pokerNum); printf(" , , 3 :
"); blood -= 3; } else { printf(" %d, %d
",pokerColour,pokerNum); printf(" , ,
"); } printf(" = %d
",blood); return 0;