New episode of coding adventures: exploring sound and the discrete Fourier transform! youtu.be/iA6wRgwl7k0
Many thanks to @3blue1brown for the great videos on the subject, which helped me to wrap my head around it.
I've been working on optimizing the ray tracer that I made a little while back. Here's a video about the process if you're interested! youtube.com/watch?v=C1H4zIiC…
Forgot to mention here -- I'm hosting a tiny chess coding challenge! You're given a (C#) framework that handles generating legal moves, updating board state etc., and you "just" need to implement the bot's brain. More info in vid if that sounds interesting youtu.be/iScy18pVR58
Work With Indies is donating 100% of its revenue this month to organizations providing humanitarian assistance to families in Palestine.
How you can help: workwithindies.com/learn/fre…
Any Roslyn experts out there able to help me understand what's going on here? Is this a parser bug, or am I just missing something?
ALT public class TokenBugTest
{
struct MyStruct
{
public string test;
}
public void Test()
{
// Commenting out line 14 causes token count to increase (from 42 to 50).
// It appears that line 14 causes line 16 to be counted as a single token. Why?!
// Tokens are counted with:
// CSharpSyntaxTree.ParseText(code).GetRoot().DescendantTokens().Count()
bool iamconfused = new MyStruct() is { test.Length : 1 };
int nonsense;
nonsense = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1;
}
}
Forgot to mention here -- I'm hosting a tiny chess coding challenge! You're given a (C#) framework that handles generating legal moves, updating board state etc., and you "just" need to implement the bot's brain. More info in vid if that sounds interesting youtu.be/iScy18pVR58
Spent some time today learning raylib by porting my little chess gui over from unity. (I missed so many faster ways to checkmate in this clip, can you spot them? :P)
Thanks for the awesome library @raysan5 !
I've been making some improvements to my old chess program, and have just set it up as a lichess bot! Would love to see how it fares against some humans, so if you're up for a quick game you can challenge it over here: (bullet and blitz only at the moment)
lichess.org/@/CodingAdventur…