To clarify, this topic is being deleted and re-instated at 3000 posts.
I HAVE NO IDEA!
Aww
Its being continued, relax, just in a different topic
I can’t resist that face ok ok I wont delete the topic
Thank you
Welp, I just got news that I got accepted in a school for 10th grade, doing “Mecanica general” as my especialty
(how2explainplz)
Fill this up to 3000, name your favorite TV show(s)
Uh, um… Hm, yeah I guess Adventure time (even if I dont watch it on tv)
Walking Dead for the win!
By the way, when is Morgan going to reappear? He is by far best character.
Morgan freeman? Morgan freeman morgan freeman morgan freeman
Where?
Yes
facepalm No I meant Morgan as in a character on the Walking Dead, not Morgan as in Morgan Freeman the actor.
dosss post:2755: Eddy post:2754:Where?
Yes
facepalm No I meant Morgan as in a character on the Walking Dead, not Morgan as in Morgan Freeman the actor.
I know :3
Fill this in with something select a topic-
Ukraine war
Ferguson
Christmas
Climate Change
ISIS
Fill this in with something select a topic-
Ukraine war
Ferguson
Christmas
Climate Change
ISIS
Ukraine war
Ferguson
Christmas
Climate Change
ISIS
Cats
Fire
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);
}
}