// The "WAR" class.
import java.awt.*;
import hsa.Console;
import Suits;
import Routine6;
public class WAR
{
static Console c; // The output console
static Suits d;
static Function2 e;
public static void main (String [] args)
{
c = new Console ();
d = new Suits (c);
e = new Function2 (c);
String suit1, suit2, card1, card2;
Color color = new Color (115, 44, 13);
c.setColor (color);
c.fillArc (0, 180, 640, 540, 0, 180);
c.setColor (Color.blue);
c.fillRect (10, 10, 130, 170);
c.fillRect (500, 10, 130, 170);
c.setColor (Color.white);
c.fillRect (120, 250, 130, 170);
c.fillRect (400, 250, 130, 170);
//for (int count = 0 ; count <= 26 ; count++)
//{
suit1 = e.suit ();
suit2 = e.suit ();
card1 = e.card ();
card2 = e.card ();
if (suit1 == "Clubs")
{
d.club (125, 270);
d.club (200, 385);
}
else if (suit1 == "Diamonds")
{
d.diamond (140, 265);
d.diamond (220, 375);
}
else if (suit1 == "Hearts")
{
d.heart (130, 250);
d.heart (217, 380);
}
else if (suit1 == "Spades")
{
d.spade (130, 265);
d.spade (220, 380);
}
}
|