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 […]

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 […]

Something for amino acid sequences. Part II.

In the previous post, we had a programme that can identify the position and occurrence of a single amino acid (represented by a letter) within a given sequence (represented by a string of letters). Let’s modify the code to enable us to search for a block consisting of multiple amino acids within the sequence provided. […]