Sliding Puzzle

2016-04-16, post № 117

games, programming, Pygame, Python, #apple, #piece, #tile, #tile game, #tile sliding, #tiles

This is my version of a sliding puzzle.
A sliding puzzle is based on a number of tiles (15 in this case) which are scrambled.
The objective of the game then is to slide the tiles around and get back to the original image.
As an image I took a photo of an apple in front of a black background.For more information on sliding puzzles, check this Wikipedia entry.


  • ‘F1’ takes a screenshot,
  • ‘F2’ starts and stops scrambling the image,
  • ‘F3’ solves the puzzle,
  • Mouse clicks slide tiles.
Source code: sliding-puzzle.py


2016-04-09, post № 116

mathematics, programming, Python, #factor, #factorize, #factors, #prime, #prime factorization, #unique factors

Playing around with prime numbers, I created this simple factorization program.
The interesting thing about prime factors is that they are unique. There can only be one way to multiply prime numbers to get 𝑛 where n\in\mathbb{N} and n\geq 2 (excluding the commutative property).For example, 2\cdot 3\cdot 7=42 and that is the only way to multiply prime numbers to get to 𝟦𝟤.

Source code: factorization.py

Jappy Jird

2016-04-02, post № 115

games, programming, Pygame, Python, #bird, #clone, #flappy, #flappy bird, #game clone, #pixel, #pixel game, #pixel-themed, #pixelated

This game is a clone of the famous international hit Flappy Bird.
You control the little pixel-bird, while it flaps through three different scenes and tries to avoid deadly pipes. Your score is measured by how many pipes you can pass.


  • ‘Escape’ pauses and resumes the game,
  • ‘F1’ takes a screenshot,
  • Up arrow key makes the bird flap.
Source code: jappy-jird.py
Jonathan Frech's blog; built 2021/04/16 21:21:49 CEST