Code up Something for Fun

Download .zip Download .tar.gz View on GitHub

games

Coding something for fun

pandigital_prime

solution to Pandigital Prime

math_twenty_four

This is a simple mental arithmetic game between TWO players. See wiki page for details.

I will throw four cards (out of 36 cards in total) from 1-9 and your goal isto manipulate these four numbers to achieve 24 by using addition, subtraction, multiplication or division.

Every card can be used only once in your equation. For example, if you are given 6,2,3,3, you should type in (3-2+3)6 or (6-2)(3+3). Player 1 presses 'A' and Player 2 'L' to compete for the rights to try the cards, and whose letter shows up first on the screen earns the rights to answer. You only have one chance to type in your solution to prevent you from gaming. If anything goes wrong, the cards will be taken back to the deck. If your solution works, you will gain those four cards. The game culminates when the deck is exhausted and whoever has more cards wins the game.

life_of_a_tree

animated fractal tree using turtle.