Search found 3851 matches

by Henk
Mon May 11, 2020 10:08 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 88
Views: 10688

Re: Simplifying code

I go for simplicity and testability. Factor it by using a wrapper/functor or something like that. So the 'wrapper' should be able to be tested in Isolation. Also code should only depend on interfaces or abstract classes when possible.
by Henk
Mon May 11, 2020 8:42 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 88
Views: 10688

Re: Simplifying code

Main search method still about 270 lines of code. So there should be enough to simplify. But getting difficult.
by Henk
Sun May 10, 2020 10:56 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Simplifying code
Replies: 88
Views: 10688

Re: Simplifying code

Next step is to make this code work. Don't know why it took seven years to find out. Even the idea of using a priority queue for move generation is from say two or three years ago. Probably blinded by low level efficiency. var movePrioQ = SearchHelper.BuildMovePrioQ(depth, generateNonCaptures, (IDMo...
by Henk
Sat May 09, 2020 4:22 pm
Forum: Computer Chess Club: General Topics
Topic: Apolgies - wrong forum!
Replies: 2
Views: 715

Re: Apolgies - wrong forum!

No we're only interested when hardware crashes or electricity falls out. Otherwise engines can play on.
by Henk
Sat May 09, 2020 9:22 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Positional evaluation of your engine on this?
Replies: 7
Views: 759

Re: Positional evaluation of your engine on this?

My engine fails. Not enought weight for King in Center Black I guess. [But first thing to fix is (idiotic) precision in numbers presented] Fen r1bq3r/1p2b1pp/p1n5/3pNkN1/P2p4/8/1PP2PPP/R1BQR1K1 w - - Non Material Value 124,733558384001 Material Value -45 Mobility White 31 Mobility Black 34 Pawn Scor...
by Henk
Sat May 09, 2020 9:07 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Positional evaluation of your engine on this?
Replies: 7
Views: 759

Re: Positional evaluation of your engine on this?

My chess engine does not understand the FEN:

invalid fen: short castling rights black
by Henk
Mon May 04, 2020 9:58 pm
Forum: Computer Chess Club: General Topics
Topic: Playing against your own engine
Replies: 14
Views: 1918

Re: Playing against your own engine

I meant of course trading or capturing the pawn that defended the knight.
by Henk
Mon May 04, 2020 5:57 pm
Forum: Computer Chess Club: General Topics
Topic: Playing against your own engine
Replies: 14
Views: 1918

Re: Playing against your own engine

No you can chase it away by almost any piece when not defended. And if it is defended you chase away the defenders first.
by Henk
Mon May 04, 2020 1:56 pm
Forum: Computer Chess Club: General Topics
Topic: Giving up the center
Replies: 27
Views: 3227

Re: Giving up the center

Hi hi hi. One should store the tree in a file or database. That will perform 1000 times slower or so I don't know. Looks like storing the tree limits these monte carlo tree expansion methods. That's another reason why alpha beta still popular. Although hash table cost much memory too. Maybe prune or...
by Henk
Mon May 04, 2020 9:00 am
Forum: Computer Chess Club: General Topics
Topic: Playing against your own engine
Replies: 14
Views: 1918

Re: Playing against your own engine

A knight on the fifth (from the viewpoint of white) can be annoying for black, especially if that knight is on e5 or d5. A knight on the sixth can be downright dangerous, cramping the black position so much that it's often advisable to give up a rook for the knight and the pawn that defends it. (It...