Sign In

Forgot your password? Request password reset...

Don't have an account? Register here...

Code Chronicles

In the dim glow of my computer screen, after hours of wrestling with a particularly stubborn bug, it finally happened. The lines of code aligned, the program ran seamlessly, and I felt that rush of triumph. Join me as I revisit these eureka moments and unravel the mysteries behind the code.

I write about my experiences and journey as a software developer, about coding topics that I've struggled with in the hopes that you don't have to, and about things I've learned that I think are awesome. This space is a melting pot of tutorials, discussions on tools, and explorations of intriguing software development concepts. Enjoy!

May 28, 2022 / 35 min read / 6,349 views 3 likes 0 comments

Last Updated: June 07, 2024

ai game javascript web

Connect 4 with robot

I wrote the board game Connect 4 for my website! πŸ˜€ Here’s a link to it if you want to check it out. The game can be played against another human or an AI opponent. It can even be played AI-vs-AI, which I find kind of fun to watch – and which made testing the AI out much easier and more scientific (more on that later). This is the story of how I wrote the AI for the game intuitively, through some trial and error. This post was updated with a significantly enhanced AI version 6 a couple days after the initial release.

Showing 1 to 1 of 1 results