Skip to content

one-byte-man/My_Tkinter_Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Projects I developed to explore the UI part of Python and learn tkinter.

My Python Projects

Here are some projects I developed while learning Python.


🚢 BattleShips Game (BattleShips.py)

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


🌡️ Temperature Converter (TemperatureConvert.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


(❌⭕) XOX Game (Tic-Tac-Toe)

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]

About

Tkinter Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages