Long code thing
Uh, monsta, are you alright? You seem cody
Uh, monsta, are you alright? You seem cody
That coding makes my head hurt
Ugh tonsillitis, I really should get them removed, but I heard its horrible to eat for a week afterwards.
If something doesnt let you eat yummy things, then it is not worth it
Amen
Something happened in my life, a moment of which I will treasure forever.
Anyway, anyone want some cake?Thecakeisalie
Pl0x gib cake
Its a cake made of fire, good luck eating it c:
Hey monsta, you are using way too much if clauses, repeating the syntax. You should try to make it shorter, maybe with the case statement.
dosss post:2761:Long code thing
Monstarules post:2760:package Deck;
import java.lang.Math;
import java.util.*;public class deck{
public static String creek1, creek2, creek3, card1, card2, cr1, cr2,cr3, c1, c2, crn1, crn2, crn3, cn1, cn2, value;
public static void creek() {
Scanner scan = new Scanner(System.in);
int[] deck = new int[52];
String[] suits = {“Spades”, “Hearts”, “Diamonds”, “Clubs”};
String[] ranks = {“Ace”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “Jack”, “Queen”, “King”};for(int i = 0; i < deck.length; i++) deck[i] = i; for(int i = 0; i < deck.length; i++){ int index = (int)(Math.random() * deck.length); int temp = deck[i]; deck[i] = deck[index]; deck[index] = temp; } for(int i = 0; i < 1; i++) { String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek1 = rank +" of "+ suit; cr1 = suit; crn1 = rank; } for(int i = 1; i < 2; i++) { String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek2 = rank +" of "+ suit; cr2 = suit; crn2 = rank; } for(int i = 2; i < 3; i++) { String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek3 = rank +" of "+ suit; cr3 = suit; crn3 = rank; } if(creek1 == creek3) { while(creek1 == creek3) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek1 = rank + " of " + suit; cr1 = suit; crn1 = rank; } } if(creek1 == creek2) { while(creek1 == creek2) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek2 = rank + " of " + suit; cr2 = suit; crn2 = rank; } } if(creek2 == creek3) { while(creek2 == creek3) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; creek3 = rank + " of " + suit; cr3 = suit; crn3 = rank; } } System.out.print("Creek: " + creek1 + ", " + creek2 + ", " + creek3); } public static void handclassifier() { if(crn1 == crn2 || crn1 == crn3 || crn2 == crn3 || crn1 == cn1 || crn1 == cn2 || crn2 == cn1 || crn2 == cn2 || crn3 == cn1 || crn3 == c2) { value = "Pair"; } } public static void main(String[] args){ int[] deck = new int[52]; String[] suits = {"Spades", "Hearts", "Diamonds", "Clubs"}; String[] ranks = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}; for(int i = 0; i < deck.length; i++) deck[i] = i; for(int i = 0; i < deck.length; i++){ int index = (int)(Math.random() * deck.length); int temp = deck[i]; deck[i] = deck[index]; deck[index] = temp; } for(int i = 0; i < 1; i++) { String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; card1 = rank +" of "+ suit; c1 = suit; cn1 = rank; } for(int i = 1; i < 2; i++) { String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; card2 = rank +" of "+ suit; c2 = suit; cn2 = rank; } if(card1 == card2) { while(card1 == card2) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; card2 = rank + " of " + suit; c2 = suit; cn2 = rank; } } System.out.println("Your hand: "+card1+", "+card2); if(card1 == creek1) { while(card1 == creek1) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; card1 = rank + " of " + suit; } } if(card1 == creek2) { while(card1 == creek2) { int i = (int)Math.random(); String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; card2 = rank + " of " + suit; } } creek(); handclassifier(); System.out.println ("\nYour hands value: " + value); }
}
Uh, monsta, are you alright? You seem cody
Hey monsta, you are using way too much if clauses, repeating the syntax. You should try to make it shorter, maybe with the case statement.
Too much! I think I’m gonna catch a code!
In other news, it’s December 7th, anniversary of the attack on the US Pacific Fleet at Pearl Harbor
Huh.
Anyway, why is no one else posting >:o
I don’t want to falsely inflate my post count
I don’t want to falsely inflate my post count
I think that ship has already sailed
Probably
Probably
YAY
Now post more, the 10.000th post is far away from us!
Ironically, December the 25th was celebrated as the birthday of Jesus because of the way it coincided with Pagan holidays. In other words, Christmas was started by Pagans.
Ironically, December the 25th was celebrated as the birthday of Jesus because of the way it coincided with Pagan holidays. In other words, Christmas was started by Pagans.
Well then, the more you know