Projects I developed to explore the UI part of Python and learn tkinter.
Here are some projects I developed while learning Python.
A classic Battleship game I built using Python and Tkinter. I designed the UI and the game logic myself. You play against an Artificial Intelligence on an 8x8 grid.
How it works:
- You place 10 ships on the grid, and then you and the AI take turns attacking.
- The first one to sink all opposing ships wins.
Color Legend:
- 🟢 Green: Your ships (visible during placement).
- 🔴 Red: Your ship has been hit.
- ⚫ Black: You hit an enemy ship!
- 🟠 Orange: Collision (Both you and the AI had a ship on the same spot).
- 🔘 Grey: Miss (Empty water).
To run:
python BattleShips.py
A GUI-based converter that works like a calculator. I designed it so you can use the on-screen buttons instead of a keyboard.
Features:
- Units: Converts between Kelvin, Celsius, and Fahrenheit.
- Visuals: The background changes to Blue for cold temps and Red for hot temps.
- It prevents invalid inputs (like going below absolute zero).
To run:
python TemperatureConvert.py
A classic 2-player Tic-Tac-Toe game. Unlike the Battleship game, this one is designed for two friends playing on the same screen.
Features:
- Local Multiplayer: You take turns playing as X and O.
- Visual Feedback: When someone wins, the winning line lights up in Yellow 🟡.
- Game Logic: Detects wins (horizontal, vertical, diagonal) and ties automatically.
- Restart: Includes a button to clear the board and start over instantly.
To run:
python XOXGame.py
Developed by [Ahmet/ahmetakpinarr]