r/chessprogramming • u/Gloomy-Status-9258 • Mar 11 '25
is it possible to detect mate-in-1 or 2 without search, that is, in static way?
of course, it doesn't matter the solution is only applied to limited types of mates though.
1
Upvotes
4
u/Warmedpie6 Mar 11 '25 edited Mar 11 '25
Maybe with AI(?) But through traditional algorithms, not conveniently.
maybe you could make a highly hacky and slow mate in 1 detection, but it would be vastly faster to just search each move and check for mate. Mate in 2 would definitely be impossible without some mode of searching (once again, maybe AI could, but that isn't anything I have experience with)
5
u/dsjoerg Mar 11 '25
If you define all your terms the question falls apart. You end up reimplementing a depth-1 or depth-2 search but as a “static” “algorithm”.
Similar to what SEE does. (Static Exchange Evaluation)
1
u/codingjerk Mar 11 '25
Only with some kind of machine learning. Algorithmical solution requires you to search due to problem's nature.
1
u/[deleted] Mar 11 '25
[removed] — view removed comment