Constants and comments, nothing big
authorMarkus Brökers <mbroeker@largo.homelinux.org>
Sat, 07 Aug 2010 16:22:58 +0200
changeset 11 1afe167876fb
parent 10 2c04629d9120
child 12 d28c1e402d82
Constants and comments, nothing big
org/homelinux/largo/games/board/chessboard/ChessBoard.java
org/homelinux/largo/schach/KIBoard.java
--- a/org/homelinux/largo/games/board/chessboard/ChessBoard.java
+++ b/org/homelinux/largo/games/board/chessboard/ChessBoard.java
@@ -76,7 +76,7 @@
 
 		switch (t) {
 		case ROOK:
-			v = 40;
+			v = 80;
 			break;
 		case KNIGHT:
 			v = 30;
@@ -88,7 +88,7 @@
 			v = 90;
 			break;
 		case KING:
-			v = 500;
+			v = 120;
 			break;
 		case PAWN:
 			v = 10;
--- a/org/homelinux/largo/schach/KIBoard.java
+++ b/org/homelinux/largo/schach/KIBoard.java
@@ -60,10 +60,12 @@
 		for(i=0;i<64;i++) {
 			if (isWhite(i))
 				white+=getValue(i);
-			if (isBlack(i))
+			else if (isBlack(i))
 				black+=getValue(i);
 		}
 
+		// Bewerte Entwicklung, Anzahl der Steine
+		// Das hier ist alles zu lahm...
 		white+=controls("white");
 		black+=controls("black");