diff --git a/resources/boardstaterep.png b/resources/boardstaterep.png new file mode 100644 index 0000000..0754aa1 Binary files /dev/null and b/resources/boardstaterep.png differ diff --git a/project.pdf b/resources/project.pdf similarity index 100% rename from project.pdf rename to resources/project.pdf diff --git a/samuals_notes.txt b/resources/samuals_notes.txt similarity index 100% rename from samuals_notes.txt rename to resources/samuals_notes.txt diff --git a/src/CheckersGameState3.java b/src/CheckersGameState3.java index 0cbef6b..de1aed7 100644 --- a/src/CheckersGameState3.java +++ b/src/CheckersGameState3.java @@ -252,6 +252,27 @@ public class CheckersGameState3 implements CheckersGameState{ } } + public boolean myPiece(int i){ + if(this.player == 1 && i == 1 || this.player == 1 && i == 3) //black + return true; + if(this.player == 0 && i == 2 || this.player == 0 && i == 4) //white + return true; + else return false; + } + + public double pieceRatio(){ + double total = 0.0; + double mypieces = 0.0; + for(int i = 0; i