Creating a basic chess AI with Python

Recently, I made a chess program in Python and published the source on github here. The code is just under 1000 lines, about 20% of which is dedicated to the AI. In this post I’ll cover how the AI works, what each part does. and why it works like that. You can just read through, or download the code and mess around with it as you read. The AI is all in the AI.py file, although it might help to look at the other files to see what the classes that the AI depend on do.

(more…)

Read More

An introduction to Node.js, Express, MongoDB, and more

Node and express can be incredibly confusing to a newcomer, even one with programming experience, I struggled a lot to understand the basics at first. Now that I have a firmer understanding of the framework, I thought I’d write an introduction to node, express, and some of my most used modules, the kind of thing I wish I could have read when I started learning node.js. I won’t be going over basic javascript syntax, and I’ll assume you have an intermediate understanding of programming in general.

(more…)

Read More

Hello world

<p”>Hello world. I thought for a while about what to title my first post, trying to find a better alternative to WordPress’ default ‘hello world’. I’ve failed, but ‘hello world’ actually seems like a decent way to start a blog which will concern programming. As anybody who’s ever tried their hand at programming knows, ‘hello world’ is the first stepping stone into the world of computer programming, and has been for decades. (more…)

Read More