@@ -0,0 +1,1908 @@
+package com.north.gamecore;%0A%0Apublic class Result %7B%0A%0A    public static String PLAYER_WIN_GAME = %22playerWinGame%22;%0A    public static String PLAYER_ADD_ONE_SCORE = %22playerAddOneScore%22;%0A    public static String PLAYER_ADD_TWO_SCORE = %22playerAddTwoScore%22;%0A    public static String TIE = %22tie%22;%0A    public static String HOLD = %22hold%22;%0A%0A    String result;%0A    Player winner;%0A%0A    public void executeResult(Player p1, Player p2) %7B%0A        // add scores%0A        if (result == null) %7B%0A            unknownError();%0A        %7D else if (result.equalsIgnoreCase(PLAYER_WIN_GAME)) %7B%0A            playerWinGame(winner);%0A        %7D else if (result.equalsIgnoreCase(PLAYER_ADD_ONE_SCORE)) %7B%0A            playerAddOneScore(winner);%0A        %7D else if (result.equalsIgnoreCase(PLAYER_ADD_TWO_SCORE)) %7B%0A            playerAddTwoScore(winner);%0A        %7D else if (result.equalsIgnoreCase(TIE)) %7B%0A            tieRound();%0A        %7D else if (result.equalsIgnoreCase(HOLD)) %7B%0A            holdRound();%0A        %7D else %7B%0A            unknownError();%0A        %7D%0A%0A        // count scores%0A        if (p1.getScore() %3E= 4) %7B%0A            p1.setWinFlag(true);%0A        %7D else if (p2.getScore() %3E= 4) %7B%0A            p2.setWinFlag(true);%0A        %7D%0A    %7D%0A%0A    private void playerAddOneScore(Player p) %7B%0A        p.setScore(p.getScore()+1);%0A        System.out.println(p.getName()+%22 win this round! Add 1 point.%22+%22%5Cn%22);%0A    %7D%0A%0A    private void playerAddTwoScore(Player p) %7B%0A        p.setScore(p.getScore()+2);%0A        System.out.println(p.getName()+%22 win this round! Add 2 point.%22+%22%5Cn%22);%0A    %7D%0A%0A    private void tieRound() %7B%0A        System.out.println(%22Tie...%22+%22%5Cn%22);%0A    %7D%0A%0A    private void holdRound() %7B%0A        System.out.println(%22Hold...%22+%22%5Cn%22);%0A    %7D%0A%0A    private void playerWinGame(Player p) %7B%0A        p.setWinFlag(true);%0A    %7D%0A%0A    private void unknownError() %7B%0A        System.out.println(%22Error, please restart the game or contact admin.%22+%22%5Cn%22);%0A    %7D%0A%0A%7D%0A

Create Result.java