# How to Build a Chess Engine and Fail

**URL:** <https://forum.devtalk.com/t/how-to-build-a-chess-engine-and-fail/177959>\
**Category:** In The News\
**Tags:** via-news-bot, chess, in-the-news\
**Created:** [19 November 2024 19:07 UTC](https://forum.devtalk.com/t/how-to-build-a-chess-engine-and-fail/177959 "2024-11-19T19:07:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CommunityNews](https://forum.devtalk.com/user_avatar/forum.devtalk.com/communitynews/32/1113_2.png) [@CommunityNews](https://forum.devtalk.com/u/CommunityNews)\
**Post date:** [19 November 2024 19:07 UTC](https://forum.devtalk.com/t/how-to-build-a-chess-engine-and-fail/177959/1 "2024-11-19T19:07:12Z")

</div>

> How to Build a Chess Engine and Fail.  
> A Chess-AI is something every programmer should build at least once and [Sebastian Lague’s](https://www.youtube.com/@SebastianLague) [competition](https://www.youtube.com/watch?v=iScy18pVR58) was the perfect opportunity for me to do so. Constrained to 1024 tokens I wanted to implement an evaluation function similar to that of Stockfish’s NNUE but heavily simplified. And instead of using a complex feed-forward algorithm to train the neural network I wanted to optimise the parameters using a genetic algorithm that relied on historical Stockfish data. However, I quickly realised why the model Stockfish uses has 50MBs of data and would not fit into my small bot for the competition…

Read in full here:

> **[How to Build a Chess Engine and Fail](https://obrhubr.org/chess-engine)**
>
> A Chess-AI is something every programmer should build at least once and \[Sebastian Lague’s\](https://www.youtube.com/@SebastianLague) \[competition\](https://www.youtube.com/watch?v=iScy18pVR58) was the perfect opportunity for me to do so. Constrained...

_This thread was posted by one of our members via one of our news source trackers._
