Search found 2052 matches

by mar
Sun May 24, 2020 8:57 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Call an engine from BASIC?!
Replies: 11
Views: 196

Re: Call an engine from BASIC?!

http://www.qb64.org/wiki/SHELL but how does it help you loading and communicating with an engine? you need to create a new process for the engine, setup pipes so that you can communicate with it. depending on what you actually need, it may be a good idea to have a thread for blocking reads to be ab...
by mar
Wed May 20, 2020 9:00 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: NICE 1.2
Replies: 15
Views: 492

Re: NICE 1.2

Oh, my bad :oops: I only ran the original batch file directly, didn't run nice.exe to generate the split batch, sorry :)
by mar
Wed May 20, 2020 7:56 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: NICE 1.2
Replies: 15
Views: 492

Re: NICE 1.2

I tried to set THREADS to 8, but I it still only see 1 engine process
by mar
Tue May 19, 2020 1:14 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: NICE 1.2
Replies: 15
Views: 492

Re: NICE 1.2

thanks Ed, that's really Nice :)
is there a way to utilize multiple threads (actually processes)? I only see 1 core utilized (1 engine instance)
also, how accurately can Nice detect say search improvements?
by mar
Mon Apr 20, 2020 4:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My castling code
Replies: 25
Views: 2097

Re: My castling code

You should take your own advice then, RuyDos is full of single-character variables/function arguments and even function names. I have no problem with short names as I understand that o is occupancy, N stands for north etc., but if you assume a certain position and do the exact opposite yourself, wel...
by mar
Sun Apr 19, 2020 9:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My castling code
Replies: 25
Views: 2097

Re: My castling code

For some reason, I often see C programmers, and ESPECIALLY chess programmers writing in C, using shorthands as if they're still trying to write their code on punch cards. (I absolutely hate the code of many chess engines I've looked at, including parts of Stockfish.) Funny that this spit is coming ...
by mar
Sat Apr 18, 2020 8:12 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: My castling code
Replies: 25
Views: 2097

Re: My castling code

I'm not sure I understand the idea, but what's wrong with flags? Isn't what you propose more complicated? You'd have to manage wcancas counters when you parse FEN as well. This way board state is coupled with game state (ply counters). You'll need two counters, one for long and one for short castlin...
by mar
Sat Apr 18, 2020 10:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Excuses for Wishy Washy FEN/EPD/PGN implementation
Replies: 39
Views: 2199

Re: Excuses for Wishy Washy FEN/EPD/PGN implementation

It IS responsibility of whoever outputs FENs/EPDs to validate such things. In the other forum, I urged users to complain, this month, to correct any such errors they encounter in chess software. This month because some developers are more productive than ever, thanks to skipping various face-to-fac...
by mar
Fri Apr 17, 2020 3:20 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Excuses for Wishy Washy FEN/EPD/PGN implementation
Replies: 39
Views: 2199

Re: Excuses for Wishy Washy FEN/EPD/PGN implementation

the point is that a position with spurious ep will hash to something else. engines won't choke on that, sure. it should be responsibility of whoever outputs FENs/EPDs to validate such things, ideally (which is not the engines, obviously). but then one could always filter EPD sets through external to...
by mar
Thu Apr 16, 2020 9:00 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Excuses for Wishy Washy FEN/EPD/PGN implementation
Replies: 39
Views: 2199

Re: Excuses for Wishy Washy FEN/EPD/PGN implementation

I hope you don't mean engine programmers, as we already have to cut through anyting that comes disguised as a FEN and remove invalid ep anyway. The problem is that to detect invalid ep, it's not enough to check for opposing pawns, you still have to check if the pawn that might ep-capture is not pinn...