@@ -0,0 +1,1369 @@
+/* Created by   :   Lijuan Marissa Zhou%0A   Email        :   marissa.lala.joo@gmail.com %0A   Time         :   1/10/2014%0A*/%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.EmptyStackException;%0A%0Apublic class TicTacToe%7B%0A%0A    public static HashMap%3CString%3E dictionary = new HashMap%3CString%3E();%0A%0A    public static void main(String%5B%5D args) %7B%0A        try %7B%0A            if (args.length%3E0)%7B%0A                printStringCar(Integer.valueOf(args%5B0%5D));%0A            %7D%0A        %7D catch (IOException e)%7B%0A            e.printStackTrace();%0A        %7D%0A        System.exit(0);%0A    %7D%0A%0A    public static String playGame(char%5B%5D%5B%5D chars) throws IOException%7B%0A        ArrayList%3CInteger%3E idies = new ArrayList%3CInteger%3E();%0A%0A        while (num %3E 0) %7B%0A            int c = 1;%0A            while((num%3E%3Ec)%3E0) c++;%0A            idies.add(c);%0A            num = (1%3C%3Cc)-num-1;%0A        %7D%0A%0A        StringBuffer sb = new StringBuffer();%0A        int sign = 1;%0A        for (int i=0; i%3Cidies.size(); i++) %7B%0A            if (i %3E 0)%0A                sb.append(%22r%22);%0A                System.out.print(%22r%22);%0A            for (int j=0; j%3Cidies.get(i); j++)%0A                System.out.print(%22a%22);%0A                sb.append(%22a%22);%0A        %7D%0A        System.out.println(sb.toString());%0A        return sb.toString();%0A    %7D%0A%7D%0A

Add TicTacToe