## Search found 224 matches

Sun Feb 06, 2011 9:28 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simple question
Replies: 8
Views: 1977

### Re: Simple question

Ok, thanks. Im guessing this is what you meant: if (board[p] == bknight) { s++; s++; s++; s++; s++; s++; s++; s++; s++; s++; s++; s++; } return s; } id still like to get rid of all those s++'s and use something else :) s += 10 perhaps? but that would change the overall result ...
Sun Feb 06, 2011 8:54 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simple question
Replies: 8
Views: 1977

### Simple question

Is there a faster way than this which will give the same results? I hate adding all the ++ lines... ive tried just doing +=10 but it gave different results. Thx. if ((board[p] & 1) == 1) s++; if ((board[p]) == bknight) s++; s++; s++; s++; s++; s++; s++; s++; s++; s++; return s;
Sat Feb 05, 2011 10:30 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

I think id rather it look at Nxf3 for 10 ply, than switch to Ng6 rather than look at Nxf3 for 3 or 4 ply then switch to Bd7 and never get off it, or a7-a6 :p
Sat Feb 05, 2011 10:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

I find it difficult to see what would cause this switch since the knight appears well posted on the central square, PST etc would make it difficult to move Ng6. Any ideas? How do these engines decide to switch from Bd7 to Ng6? Well, I have no idea why it does it, but Jazz does switch to Ng6 at 11 p...
Sat Feb 05, 2011 10:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

int bishop_mobility_black(int sq, int offsets[]) { int q, *c = offsets, t = 0; do { for (q = sq + *c; board[q] == npiece; q += *c) t++; } while (*++c); if (board[q] && ((board[q] & 1) == 0)) t++; if (board[q] && (board[q] == wknight)) t++; ...
Sat Feb 05, 2011 8:50 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

no, well it seems increasing the score for knight attacking a bishop will not help the knight move away from a square where it is _already_ attacking a bishop to a (worse (PST etc)) square to attack a different bishop :) The increase in Q mobility and the B on g7 should be enough, but I suppose ther...
Sat Feb 05, 2011 8:38 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

ok, so I already have bishop and queen mobility, I don't have a checking bonus or a threat bonus as such... just these attacks included in mobility scores but unfortunately in such a way it is difficult to include a larger bonus for checks in B mobility, knight mobility I think I can adjust to inclu...
Sat Feb 05, 2011 8:17 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

Ive noticed lowering Knight mobility or raising the B pair bonus will bring me a switch to Ra8-b8 at around ply 10, no luck on the knight move yet...
Sat Feb 05, 2011 8:15 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Re: Finding the move

sorry,
r1b2rk1/pp2q1bp/3p4/2pPnp2/2P2B2/1QN2BPP/PP1R4/5RK1 b - - 4 19
Sat Feb 05, 2011 7:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Finding the move
Replies: 14
Views: 3411

### Finding the move

Is there any particular eval element which helps strong engines to find 19... Ng6 here? http://i51.tinypic.com/f9pk5y.png Rybka 3 and Stockfish 1.6.3 both have a look at Nxf3 (quickly rejected) and Bd7, eventually switching to Ng6. I find it difficult to see what would cause this switch since the kn...