◀ Back

The Algorithms of Quoridor.fr



Some of you, programming experts or simply curious, may have wondered how the game on this site was coded. To answer these questions, let's take a look under the hood and see how it works. Initially, the online version of Quoridor was programmed in PHP, but the server didn't handle the AI's large loops very well. So, I rewrote Quoridor in JavaScript, which increased the game's performance at least tenfold. Let's first look at how the Quoridor game board is modeled, then how we check if a player is stuck, and finally, what the AI ​​algorithm is.