Search found 37 matches

by TommyTC
Wed Oct 07, 2020 5:32 am
Forum: Computer Chess Club: General Topics
Topic: Something new coming down the highway
Replies: 26
Views: 2436

Re: Something new coming down the highway

Hi Mike, With your latest code, I compiled and entered "go" as the first command. A bad thing happened :cry: I started the program again, and entered "sd" all by itself. A bad thing happened :cry: If you enter "sd abc", a bad thing happens :cry: Even though this is 2020, some of us (including me) ha...
by TommyTC
Tue Oct 06, 2020 3:15 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Another bug. The e.p. flag gets lost after "go" and then "undo". I haven't had a chance to review your e.p. changes on 9/29/2020. TOMDEBUG: 3 Enter SEARCH DEPTH (sd): 1 r n b q k b n r p p p p p p p p . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . P P P P P P P P R N B Q K B N R e2e...
by TommyTC
Mon Oct 05, 2020 7:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Currently AtkByWhite() and AtkByBlack() are used only for checking castling privileges. If they are used for other purposes there is a problem:

These routines currently do not check for WC, WRC, BC, BRC. When those pieces attack a square, it is not detected.

Tommy
by TommyTC
Sun Oct 04, 2020 7:29 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, I'm still working with your code from Sep 29 after you inserted RootSearch. I've found a move generation bug. From the starting position, "perft 1" to "perft 7" all match perfectly. I then tested the "Kiwipete" position: r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq - r3k2r...
by TommyTC
Fri Oct 02, 2020 6:31 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, (I created this message before your most recent post a few minutes ago about Bricabrac playing its first game.) Before implementing iterative deepening (ID), I think you should first fix the program to recognize stalemate and checkmate positions. Not just after the search is complete, but d...
by TommyTC
Thu Oct 01, 2020 11:03 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, Bug 1: "u" from starting position. Oops! Program exception in TakeBack. ===== Bug 2: The score values assigned for pawn promotion (with or without capture) are not correct. Here are the key definitions: enum { B, R, N, Q }; enum { OO, WP, WN, WB, WR, WRC, WQ, WK, WC, BP, BN, BB, BR, BRC, BQ...
by TommyTC
Tue Sep 29, 2020 6:47 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

One Idea is to make a RootSearch() and just keep track of the best move as each move is searched. Seems far simpler than the way it is now. But, it upsets me a bit that it means undoing that clever code that you spent so much time on. Do you think it sounds like a good idea, though? Hi Mike, At thi...
by TommyTC
Tue Sep 29, 2020 4:29 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, Please disregard my previous comment: I've noticed at times that some moves are labelled as "illegal" that shouldn't be -- certainly not at the root. In one position, the first move searched (order = 0), showed "illegal" score. Since your code produces pseudo-legal moves, this is expected b...
by TommyTC
Fri Sep 25, 2020 4:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, Just a few quick notes. I tried depth 9, which was significantly more slow than depth 8, and the game started: 1.a3 a5 2.b3 a4 3.bxa4 Rxa4 So this leads credence to the idea that at depth 8 3...d5 was played because of a horizon effect. Before perft testing, your code needs to handle checkm...
by TommyTC
Fri Sep 25, 2020 2:19 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I don't want to give up
Replies: 70
Views: 11555

Re: I don't want to give up

Hi Mike, Possible problem: At depth 4 and above, Black doesn't recapture on a4 after the initial moves: 1.a3 a5 2.b3 a4 3.bxa4 d5 Oddly enough, I think 3...d5 is the expected move (!!) by your program at this time. Think about the move search priority. A capture, 3...A8A4, is given lower priority th...