Unscramble the Word

It has been a while, but here is a short post for a simple game nonetheless. This game is called “Unscramble the Word”, where the player would be presented a 7-letter word that has been scrambled and would have to provide the unscrambled word as the correct answer to gain a point. A wrong answer […]

Password Generator.

If you are searching for ideas for a Python mini project on the internet, this would be one of the common search results. This is my take on a simple programme to generate passwords. A password that is considered to be of sufficient complexity typically consists of the following:– At least 1 upper case letter […]

Blackjack Score Calculator.

I was trying out some Python problems on Codewars (www.codewars.com) when I came across this interesting problem titled ‘Blackjack Scorer’ posted by a user called ‘jodymgustafson’. I find this problem interesting because there is a conditional involved when determining the value of an ‘Ace’ card, where it can either take a value of 1 or […]

Guessing game. Part II – Monte Carlo Simulation

We’ve created a simple game in the previous post (see Guessing Game) where the positions of ‘O’ and ‘X’ are shuffled randomly, and the player gets a point for making a correct guess. Let’s consider the scenario where someone wanted to monetise this game. Some of the considerations might be as follows:– how much should […]

Guessing game.

Let’s create a guessing game with a list of five objects containing three ‘O’ and two ‘X’ which would be shuffled randomly. The player would then be asked to choose a position (Left to right – numbered 1 to 5) that do NOT contain an ‘X’. This is equivalent to a probability of 0.6 of […]

Let’s play dice.

I am sure you are familiar with a typical six-sided dice, and if all else remains equal, the probability of rolling any of the numbers is simply 1 out of 6, or a probability of 0.167. In this post, we’ll create a simple programme that mimic the random dice roll, collate the results of each […]