// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   automatedClient.java

package boggle.client;


// Referenced classes of package boggle.client:
//            gamePanel

class automatedClient extends Thread
{

    public automatedClient(gamePanel gamepanel)
    {
        master = gamepanel;
        setPriority(1);
    }

    public void run()
    {
        master.getBoardDescription();
        String as[] = {
            "the", "and", "well", "this", "had", "all", "ant", "elf", "bad", "bed", 
            "cat", "slip", "sent", "big", "die", "end", "fen", "gun", "hen", "lead", 
            "man", "now", "pot", "row", "son", "tie", "vow", "win", "end"
        };
        for(int i = 0; i < as.length; i++)
        {
            int j = master.score(as[i]);
            if(j > 0)
                score += j;
        }

    }

    public int finish()
    {
        stop();
        return score;
    }

    private gamePanel master;
    private int score;
}
