2048 AI – The Intelligent Bot

Introduction In this article, we develop a simple AI for the game 2048 using the Expectimax algorithm and “weight matrices”, which will be described below, to determine the best possible move at each turn. The implementation of the AI described in this article can be found here. The source files for the implementation can be…

Solving Sudoku by Backtracking

In this project, we look at the backtracking algorithm to solve Sudoku puzzles. Here is the Javascript implementation of the backtracking algorithm that will be explained in this article. Getting back on track The primitive brute force approach is to fill up all of the blank spaces randomly with numbers from 1 to 9 until a valid…

P2P File Transfer over TCP

File transfers usually take place via an intermediate server – Your files get uploaded to the intermediate server, and others download from the intermediate server instead of from you. On the other hand, in another perhaps less well-known class of file transfers, Peer-To-Peer (P2P) file transfers, the files get sent directly from you to the…