D
D
DimitryLed2020-06-27 11:00:26
C++ / C#
DimitryLed, 2020-06-27 11:00:26

Is writing chess AI good practice in C++?

From third-party libraries, apart from the standard one, I want to use only SFML for the interface and display, all logic will be written from scratch. I asked this question precisely because I doubt whether this game is worth the candle. Is it worth it to write your bike when there have been engines like stockfish and komodo for a long time? I'm very tight with ideas and creativity, it's hard for me to come up with any idea for a project or just a small task, but I'm a little tired of solving problems on codewars / hackerrank, and the subject is so far the only task that I could come up with for myself.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Developer, 2020-06-27
@samodum

Certainly. It's great practice

J
Jek, 2020-06-27
@jotrib

Good, try to parallelize to cuda or cpu through sockets at the same time.

X
xmoonlight, 2020-06-27
@xmoonlight

Well,

here you cheated
I'm very tight with ideas and creativity, it's hard for me to come up with any idea for a project or just a small task, but I'm a little tired of solving problems on codewars / hackerrank, and the subject is so far the only task that I could come up with for myself.

It depends on what you practice...
AI development and coding are different things that NEVER! should not practice together.
Consistently doing - yes, and of course, it will only benefit you.

M
maaGames, 2020-06-28
@maaGames

(1) Tic-tac-toe >>> (2) corners >>> (3) checkers without kings >>> (4) checkers with kings >>> (5) chess.
1 - to deal with the search for A*
2 - to deal with the representation of the evaluation of positions on the board and saving the position for each piece in the minimum representation
3 - to add the value of the pieces to the positional evaluation
4 - These are full-fledged drafts with tactics and strategy, at a shallow depth such a search will not work normally (it will not see the appearance of kings and cut off profitable options)
5 - when checkers with kings work adequately, then you can try to play chess according to truncated rules, without castling, respawning pawns and with other reservations.
by and large, there is no AI in chess, it is a super-duper mathematical combine. All AI is contained in the asterisk above the A, and everything else is depth-first search.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question