// 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:   codec.java

package boggle;


public class codec
{

    public static int encode(String s, String s1)
    {
        String s2 = s1 + s + s1 + s + s1;
        String s3 = s2.substring(s2.length() / 2, s2.length());
        s3 = s3 + s2.substring(0, s2.length() / 2);
        String s4 = s3.substring(s3.length() / 4, (3 * s3.length()) / 4);
        int i = 0;
        for(int j = 0; j < s4.length(); j++)
            i += s4.charAt(j) / 2;

        return i;
    }

    public codec()
    {
    }
}

