This repository contains a well-organized collection of Python programs demonstrating various concepts, algorithms, data structures, and games.
The project is organized into the following main directories:
tictactoe.py- A classic Tic-Tac-Toe game where you play against the computerhangman.py- A graphical Hangman game using Tkinterarcade.py- Collection of arcade-style gamesinterface.py- GUI applications and interface examples using Tkinter
algorithms.py- Collection of common algorithms (Two Sum, binary search, merge sort)calculator.py- Mathematical calculation utilitiesdata_structures.py- Functions for list, array, and set operationsmatrix.py- Matrix operations and utilitiesnumber_theory.py- Number theory functions (factorials, prime numbers, Collatz Conjecture)string_utils.py- String manipulation and processing utilities
geometry.py- Classes for geometric calculations (Point, Rectangle, Circle, Triangle)education.py- Education-related utilities (grade conversion, statistics)finance.py- Financial calculations and modelscommerce.py- E-commerce and business modelsdevice.py- Device and hardware-related modelsstudent.py- Student data models and utilitiesmessage_routing.py- Encrypted message routing system for secure communication networks
All programs can be run using Python 3:
python -m module_path.filenameFor example:
python -m games.hangman
python -m math.number_theory
python -m models.geometry- You play as 'O' against the computer which plays as 'X'.
- Select a position by entering a number from 1-9.
- The first player to get three in a row wins.
- The program randomly selects a word for you to guess.
- Click on letter buttons to make guesses.
- Guess the full word before the hangman is completely drawn.
- Factorial calculation
- Prime number checking
- Collatz Conjecture implementation
- GCD and LCM calculations
- Two Sum problem solution
- Binary search implementation
- Merge sort algorithm
- Maximum subarray sum
- Point class with distance calculations
- Rectangle class with area and perimeter methods
- Circle class with area and circumference methods
- Triangle class with area, perimeter and validity checking
- Grade to GPA conversion
- Statistical analysis of grade distributions
- Education data processing tools