Search found 3967 matches

by Henk
Sat Jan 16, 2021 10:49 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

"using static". Just hides a dependency. The more dependencies the more problems.

I mean just reduce dependencies. Don't hide them. using static is ok. But then all code in same file might be dependent which might not be ok.
by Henk
Fri Jan 15, 2021 8:21 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: On-line engine blitz tourney January
Replies: 13
Views: 559

Re: On-line engine blitz tourney January

Might be because I visited them at the end of the tournament and they were tired or too busy with the games.
Maybe when you are a spectator you can only talk to other spectators when not hindering operators.
by Henk
Thu Jan 14, 2021 4:49 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Question regarding data structures
Replies: 8
Views: 260

Re: Question regarding data structures

Doing already all the black magic bitboard operations ?

Better find something clever to prune more nodes.
by Henk
Thu Jan 14, 2021 10:31 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

In C# you can now also put static methods in an interface. Don't know yet what is the advantage.
Makes it more clear. No hidden static methods?
by Henk
Thu Jan 14, 2021 9:15 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: On-line engine blitz tourney January
Replies: 13
Views: 559

Re: On-line engine blitz tourney January

Hope i can be there. Not sure since i will be on a journey all day. I think your engine has no fans or sponsors so who cares accept yourself of course. Even attended wccc as a spectator twice. Message was: "go home for you are twenty years too late. And please don't bother the operators or people t...
by Henk
Wed Jan 13, 2021 11:53 am
Forum: Chess Players Forum
Topic: Top players
Replies: 5
Views: 5028

Re: Top players

In 1834 La Bourdonnais – McDonnell : 45-13-27 Alexandre Deschapelles unofficial worldchampion from 1800-1820. In 1822 switched to playing Whist at age about 42 See https://en.wikipedia.org/wiki/Alexandre_Deschapelles O wait we also have: https://en.wikipedia.org/wiki/Legall_de_Kermeur Might be even ...
by Henk
Wed Jan 13, 2021 11:06 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

Some people using Microsoft PowerApps or similar.
So trent is low code, configure and using some strange scription language to knit the pieces together?

If so then better copy (modules of) an existing chess engine.

Programming from scratch forbidden for it costs too much (development) time ??
by Henk
Tue Jan 12, 2021 12:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

O wait hashfunction for move generation must be perfect. That is collision free. So can't use standard hashalgorithms from C# I guess. Random(seed) also does not generate unique numbers. seed = diagonal or vertical occupancy(square, position) Problem is I do have these magic numbers but lost the cod...
by Henk
Mon Jan 11, 2021 8:44 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

All needless complcated. I had better write. public int ComputeHashKey(ulong occupancy, ulong magic, int nBits) { var ind = occupancy * magic; var hashKey = (int)(ind >> (64 - nBits)); return hashKey; } public void FillDiagonalMovesHashTable() { var diagonalOccupancies = GenOccupancies(DiagonalOcc, ...
by Henk
Mon Jan 11, 2021 3:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Complicating code in C#
Replies: 56
Views: 5881

Re: Complicating code in C#

Don't know. If you want to implement 3d Chess then you probably need some kind of a 3d scene viewer.
Can you use winboard for that? Otherwise you need to implement a viewer yourself.