video thumbnail 1:01:01
Coding Adventure: Making a Stronger Chess Engine

2023-06-30

[public] 12.3K views, 30.3K likes, dislikes audio only

channel thumbSebastian Lague
4K

Trying to improve an old chess bot by experimenting with various interesting techniques.

You can play (or watch) the bot on lichess: https://lichess.org/@/CodingAdventureBot/playing

This is a sequel to: /youtube/video/U4ogK0MIzqk

If you'd like to support my work (and get early access to new videos and projects) you can become a patron of the channel over here: https://www.patreon.com/SebastianLague

Source code: https://github.com/SebLague/Chess-Coding-Adventure

A really fun video about various algorithms for playing chess by @tom7:

/youtube/video/DpXy041BIlA

Music and other credits:

https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/Chess-2.txt

Chapters:

00:00 Intro

00:38 Battle of the Bots

03:18 Maybe Don’t Throw Away the Best Move?

07:13 Transposition Troubles

10:55 Search Extensions

14:01 Refactoring and Recapping

15:51 Tweaking Kings and Pawns

19:35 Bitboards!

23:54 Passed Pawns (and more)

28:32 Magic Bitboards (minus the magic)

34:40 The Magical Part of Magic Bitboards

39:00 Testing and Optimizing Move Generation

41:50 Killers, Reductions, and Repetitions

45:56 Creating a Lichess Bot

49:30 Let’s Play!

54:54 Existential Crisis

55:02 The Bot’s First Game Online

56:12 Can Our Bot Beat Stockfish? (No)

56:59 Rating Speculation

59:28 Outro


Intro
/youtube/video/_vqlIPDR2TU?t=0
Battle of the Bots
/youtube/video/_vqlIPDR2TU?t=38
Maybe Don’t Throw Away the Best Move?
/youtube/video/_vqlIPDR2TU?t=198
Transposition Troubles
/youtube/video/_vqlIPDR2TU?t=433
Search Extensions
/youtube/video/_vqlIPDR2TU?t=655
Refactoring and Recapping
/youtube/video/_vqlIPDR2TU?t=841
Tweaking Kings and Pawns
/youtube/video/_vqlIPDR2TU?t=951
Bitboards!
/youtube/video/_vqlIPDR2TU?t=1175
Passed Pawns (and more)
/youtube/video/_vqlIPDR2TU?t=1434
Magic Bitboards (minus the magic)
/youtube/video/_vqlIPDR2TU?t=1712
The Magical Part of Magic Bitboards
/youtube/video/_vqlIPDR2TU?t=2080
Testing and Optimizing Move Generation
/youtube/video/_vqlIPDR2TU?t=2340
Killers, Reductions, and Repetitions
/youtube/video/_vqlIPDR2TU?t=2510
Creating a Lichess Bot
/youtube/video/_vqlIPDR2TU?t=2756
Let’s Play!
/youtube/video/_vqlIPDR2TU?t=2970
Existential Crisis
/youtube/video/_vqlIPDR2TU?t=3294
The Bot’s First Game Online
/youtube/video/_vqlIPDR2TU?t=3302
Can Our Bot Beat Stockfish? (No)
/youtube/video/_vqlIPDR2TU?t=3372
Rating Speculation
/youtube/video/_vqlIPDR2TU?t=3419
Outro
/youtube/video/_vqlIPDR2TU?t=3568
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Chess 3,415,403 views
/youtube/video/U4ogK0MIzqk
Exploring How Computers Work 2,948,742 views
/youtube/video/QZwneRb-zqA