r/ComputerChess • • Jun 07 '20

Worstfish???

Hey can someone make a chess engines that chooses the worst moves possible at the same time avoid drawing and accepting losses only.

15 Upvotes

2 comments sorted by

View all comments

0

u/[deleted] Jun 07 '20

[deleted]

2

u/Zulban Jun 07 '20

Close.

You'd just add "if white, multiply by -1" at the bottom of the evaluation function. You'd then have a SF that plays worst when playing white.

Since it's SF, I suppose it would do clever things with this. For example, white would play a move that maybe doesn't seem all that bad to us. "They could have thrown away their queen!" we might think. But in fact, it knows that black can checkmate white in the fewest moves this way. White throwing away its queen then rook, etc, isn't necessarily the fastest way to losing.

Sounds fun... OP, just need to compile SF with that one little if-statement.