
-----------------------------------
BlAcK TuRtLe
Sun Nov 23, 2003 6:27 pm

Need help with cards and war
-----------------------------------
im making a card game (war) for school.  It uses funtions to give randomly generated cards.  However i can't figure out how to make it so that after a crad is picked it cant be picked again. Any help?
Heres the code for the main program.

// 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 