Python

Here is a collection of my best python projects

Text encryption

This is an asymmetric encryption tool that can encrypt text with a public key and decrypt it with the privet keys (primes). It works like this:

  • Generate a public and privet keys
  • Send the public key to the person you want to receive a message from
  • That person encrypts the message with the public key and sends the encrypted message back to you.
  • You can now decrypt the message with you’re privet key

If someone else got there hands on the public key it wouldn’t matter because the privet key is needed to decrypt the message so its save to share the public key with every one.

The normal size for a prime is 2048 bits (around 616 digits)  


(Use “Open in Colab” to Run😊)

Mini Max algorythem​​

this algorythem can play a game called deca poin. It is played on a 4×4 board, with eatch player having 4 pion’s(same rules as chess) you can win the game by getting one of youre pion’s to the other side or blocking the other player form making a move. This algorythem is a minimax algorythem that look 7 rounds into the future to play. the coordinates are: (0,0) top right and (3,3) bottem left

Genome frequency calculator

The genome frequency calculator is a program that can calculate the frequency of genomes and genome combinations in the offspring of two parents. Every genome should be defined by a letter, the dominant gene with a uppercase letter, and the recessive gene with a lower case letter.  You also have the ability to add genes to the same chromosome or to different chromosomes. After calculating you will get a list of the possible offspring genotypes together with the change of showing up in the offspring. You can also look for a specific gene or gene combination to see its chance of occurring in the offspring.  If you want to Make a male and female chromosome you can give the female chromosome XX and the Male chromosome XY

Hanging man(Dutch)

This is a Dutch version of hanging man with a library of 5000 words, you can also play with multiple people. The aim of the game is to find the word by guessing letters until the word is complete. With every fail the gallow will be built up if the gallow is complete you fail. Good luck

2048

This is a game that works by combining numbers. On the grid very move a new number will appear this will most of the time be a 2 but in 10% of the cases a 4. You can move al the number on the board by using wasd. This will move the pieces as much in that direction as possible. If two numbers who are the same bump into each other they will combine. The aim of the game is to create the number 2048