{"content":{"sharePage":{"page":0,"digests":[{"id":"79145545","dateCreated":"1469594521","smartDate":"Jul 26, 2016","userCreated":{"username":"neurocore","url":"https:\/\/www.wikispaces.com\/user\/view\/neurocore","imageUrl":"https:\/\/www.wikispaces.com\/user\/pic\/1334890757\/neurocore-lg.jpg"},"monitored":false,"locked":false,"links":{"self":"https:\/\/chessprogramming.wikispaces.com\/share\/view\/79145545"},"dateDigested":1531477563,"startDate":null,"sharedType":"discussion","title":"Low material correction mistake","description":"Sorry, corrected without any discussion
\n
\nif (b.PieceMaterial[stronger] == e.PIECE_VALUE[ROOK]
\n && b.PieceMaterial[weaker] == e.PIECE_VALUE[BISHOP]) result \/= 2;
\n
\n if (b.PieceMaterial[stronger] == e.PIECE_VALUE[ROOK]
\n && b.PieceMaterial[weaker] == e.PIECE_VALUE[KNIGHT]) result \/= 2;
\n
\nwas BISHOP in both cases","replyPages":[{"page":0,"digests":[{"id":"90465147","body":"looks fine, thank you!","dateCreated":"1469609508","smartDate":"Jul 27, 2016","userCreated":{"username":"GerdIsenberg","url":"https:\/\/www.wikispaces.com\/user\/view\/GerdIsenberg","imageUrl":"https:\/\/www.wikispaces.com\/user\/pic\/1202793136\/GerdIsenberg-lg.jpg"}}],"more":0}]},{"id":"40472891","dateCreated":"1308944665","smartDate":"Jun 24, 2011","userCreated":{"username":"Crixus","url":"https:\/\/www.wikispaces.com\/user\/view\/Crixus","imageUrl":"https:\/\/www.wikispaces.com\/i\/user_none_lg.jpg"},"monitored":false,"locked":false,"links":{"self":"https:\/\/chessprogramming.wikispaces.com\/share\/view\/40472891"},"dateDigested":1531477563,"startDate":null,"sharedType":"discussion","title":"King evaluation","description":"Please can you explain why in bKingEval used:
\n if ( p.PieceMaterial[BLACK] < e.ENDGAME_MAT ) {
\n result += e.endgame_king[sq];
\n }
\ninstead of:
\n if ( p.PieceMaterial[WHITE] < e.ENDGAME_MAT ) {
\n result += e.endgame_king[sq];
\n }","replyPages":[{"page":0,"digests":[{"id":"40547675","body":"For more or less balanced position it don't cares that much. If white is below the threshold, black may already start to center his king, even if black itself is above the threshold. It seems to me you are right.","dateCreated":"1309288161","smartDate":"Jun 28, 2011","userCreated":{"username":"GerdIsenberg","url":"https:\/\/www.wikispaces.com\/user\/view\/GerdIsenberg","imageUrl":"https:\/\/www.wikispaces.com\/user\/pic\/1202793136\/GerdIsenberg-lg.jpg"}}],"more":0}]},{"id":"5053377","dateCreated":"1218351908","smartDate":"Aug 10, 2008","userCreated":{"username":"GerdIsenberg","url":"https:\/\/www.wikispaces.com\/user\/view\/GerdIsenberg","imageUrl":"https:\/\/www.wikispaces.com\/user\/pic\/1202793136\/GerdIsenberg-lg.jpg"},"monitored":false,"locked":false,"links":{"self":"https:\/\/chessprogramming.wikispaces.com\/share\/view\/5053377"},"dateDigested":1531477563,"startDate":null,"sharedType":"discussion","title":"KingShield() = versus ==","description":"in wKingShield(), bKingShield() there seems a bug according to assignment versus compare. Due to assignment of zero, the condition is always false:
\n
\n if ( p.PawnsOnFile [COLOR_WHITE] [ COL_H ] = 0 ) result -= 8;
\n if ( p.PawnsOnFile [COLOR_WHITE] [ COL_G ] = 0 ) result -= 8;
\nGerd","replyPages":[{"page":0,"digests":[{"id":"5137065","body":"fixed, thx","dateCreated":"1219377680","smartDate":"Aug 21, 2008","userCreated":{"username":"Pawel_Koziol","url":"https:\/\/www.wikispaces.com\/user\/view\/Pawel_Koziol","imageUrl":"https:\/\/www.wikispaces.com\/i\/user_none_lg.jpg"}}],"more":0}]}],"more":false},"comments":[]},"http":{"code":200,"status":"OK"},"redirectUrl":null,"javascript":null,"notices":{"warning":[],"error":[],"info":[],"success":[]}}