Sebastian Lague – Goodnewsnigeria https://goodnewsnigeria.com There is Good in Nigeria. Sun, 08 Oct 2023 11:09:16 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 35090771 Coding Adventure: Simulating Fluids https://goodnewsnigeria.com/random/coding-adventure-simulating-fluids/?utm_source=rss&utm_medium=rss&utm_campaign=coding-adventure-simulating-fluids https://goodnewsnigeria.com/random/coding-adventure-simulating-fluids/#respond Sun, 08 Oct 2023 11:09:16 +0000 https://goodnewsnigeria.com/random/coding-adventure-simulating-fluids/



Let’s try to convince a bunch of particles to behave (at least somewhat) like water.

Source code:
Currently in early access to supporters on Patreon and Ko-Fi, but will be available to everyone from 22nd October.
If you’d like to support me in creating more videos like this, you can do so here:
https://www.patreon.com/SebastianLague
https://ko-fi.com/sebastianlague

Resources:
https://matthias-research.github.io/pages/publications/sca03.pdf
http://www.ligum.umontreal.ca/Clavet-2005-PVFS/pvfs.pdf
https://sph-tutorial.physics-simulation.org/pdf/SPH_Tutorial.pdf
https://web.archive.org/web/20140725014123/https://docs.nvidia.com/cuda/samples/5_Simulations/particles/doc/particles.pdf

Music:
https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/Fluid-Sim.txt

Chapters:
0:00 Intro
0:27 Gravity and Collisions
2:31 Smoothed Particles
3:55 Calculating Density
7:53 The Interpolation Equation
11:58 Gradient Calculations
15:38 The Pressure Force
19:19 Trying to Make it Work…
22:05 Optimizing Particle Lookups
26:31 Spatial Grid Code
27:48 Position Predictions
30:32 Mouse Force
33:22 Artificial Viscosity
36:46 Pressure Problems
39:51 Bugs
41:06 Parallel Sorting
43:22 Some Tests and Experiments
44:47 The Third Dimension
47:23 Outro

source

]]>
https://goodnewsnigeria.com/random/coding-adventure-simulating-fluids/feed/ 0 240200
Coding Adventure: Making a Better Chess Bot https://goodnewsnigeria.com/random/coding-adventure-making-a-better-chess-bot/?utm_source=rss&utm_medium=rss&utm_campaign=coding-adventure-making-a-better-chess-bot https://goodnewsnigeria.com/random/coding-adventure-making-a-better-chess-bot/#respond Fri, 30 Jun 2023 11:14:45 +0000 https://goodnewsnigeria.com/random/coding-adventure-making-a-better-chess-bot/



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: https://youtu.be/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:

Music and other credits:
https://github.com/SebLague/Misc-Project-Info/blob/main/Chess-2/Credits.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

source

]]>
https://goodnewsnigeria.com/random/coding-adventure-making-a-better-chess-bot/feed/ 0 209319