Commits

Andrew Nguyen  committed e7a3415

put printout in the correct place

  • Participants
  • Parent commits cc81a1a

Comments (0)

Files changed (2)

File src/ClassicLayout.java

 		g.drawImage(bg, 0, 0, 455, 325, b);
 
 		Graphics2D g2 = (Graphics2D) g;
-		
-		// Commandline output of stones
-		System.out.print(" ");
-		for (int p = pits[1].length - 1; p >= 0; p--)
-			System.out.print(" " + pits[1][p]);
-		if (mancalas[1] < 10)
-			System.out.print("\n" + mancalas[1] + "             " + mancalas[0] + "\n ");
-		else
-			System.out.print("\n" + mancalas[1] + "           " + mancalas[0] + "\n ");
-		for (int p = 0; p < pits[0].length; p++)
-			System.out.print(" " + pits[0][p]);
-		System.out.println("\n");
 
 		// Draw the stones.
 		for (int r = 0; r < pits.length; r++)

File src/Mancala.java

          listener.stateChanged(new ChangeEvent(this));
 
       }
+
+		// Commandline output of stones
+		System.out.print(" ");
+		for (int p = pits[1].length - 1; p >= 0; p--)
+			System.out.print(" " + pits[1][p]);
+		if (mancalas[1] < 10)
+			System.out.print("\n" + mancalas[1] + "             " + mancalas[0] + "\n ");
+		else
+			System.out.print("\n" + mancalas[1] + "           " + mancalas[0] + "\n ");
+		for (int p = 0; p < pits[0].length; p++)
+			System.out.print(" " + pits[0][p]);
+		System.out.println("\n");
 	}
 
 	/**