Skip to content

Misc riddles, games, and problems modeled using python.

Notifications You must be signed in to change notification settings

jjCode01/Py-Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-Problems

A collection of riddles, games, and problems modeled using python.

Solves soduko puzzles using recursion.

Each of 100 prisoner has to find their own number in one of 100 drawers, but may open only 50 of the drawers. This program tests probabilities for different strategies to solve the 100 Prisoner Problem.

100 prisoners problem screenshot

Given a set of integers, this program calculates the sequence of numbers (steps) for each integer following the rules of Collatz Conjecture:

  • If the previous term is even, the next term is one half of the previous term (n / 2).
  • If the previous term is odd, the next term is 3 times the previous term plus 1 (3n + 1).

The results are displayed on a graph.

Collatz Conjecture screenshot

About

Misc riddles, games, and problems modeled using python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages