Category Archives: Mathematics

Bank Cards

This is an interesting number puzzle:

Posted in Uncategorized | Tagged , | Leave a comment

Connect Four – a MiniMax Algorithm

Connect 4 is a game in which the 2 players take turns dropping coloured pieces into a grid consisting of 7 columns and 6 rows. The pieces fall straight down, occupying the lowest available space within the column. The objective … Continue reading →

Posted in Uncategorized | Tagged , , | 2 Comments

8 Queens Problem

Today, we are going to look at the classic problem of placing Queens on a chessboard, such that no Queen is attacking any other Queens. It’s immediately obvious that we cannot place more than 8 Queens and meet these conditions, … Continue reading →

Posted in Uncategorized | Tagged , | Leave a comment

10 Digit Number Puzzle

In my previous post I shared some code to generate permutations. We can use this code to solve a problem I’ve posted about previously. Find the only 10 digit number which uses each of the digits 0 – 9 and … Continue reading →

Posted in Uncategorized | Tagged , | Leave a comment

Generating Permutations in Javascript

I’ve recently been working on a number puzzle which involved generating permutations. It involves finding permutations of a ten digit number. I decided to code this in Javascript. I found the following on Wikipedia: The following algorithm generates the next … Continue reading →

Posted in Uncategorized | Tagged , | Leave a comment