This repository contains a collection of classic games implemented in Python using the Turtle graphics library. Each game is contained within its own directory and can be run independently.
Code is from and inspired by with some improvements: 100 Days of Code: The Complete Python Pro Bootcamp https://www.udemy.com/share/103J8C3@0R0_ZWb7kJ4do0X-4zRsulmwTyefJndLSF7-DCQhp_3ojIbfiWmdBIvIMOalNv_ECg==/
A simple implementation of the classic card game Blackjack.
- File: blackjack/blackjack.py
- How to Play: Run the script and follow the on-screen instructions to play Blackjack against the computer.
A classic Pong game where you can play against another player.
- Files:
- How to Play: Run
pong_game.pyand use the keyboard to control the paddles. Player 1 uses the "Up" and "Down" arrow keys, and Player 2 uses the "W" and "S" keys.
A classic Snake game where you control a snake to eat food and grow longer.
- Files:
- How to Play: Run
snake_game.pyand use the arrow keys to control the snake. Eat the food to grow longer and avoid running into the walls or yourself.
A simple Tic Tac Toe game where you can play against the computer.
- File: tic_tac_toe/tic_tac_toe.py
- How to Play: Run the script and follow the on-screen instructions to play Tic Tac Toe against the computer.
A game where you control a turtle to cross the road while avoiding cars.
- Files:
- How to Play: Run
turtle_crossing.pyand use the "Up" arrow key to move the turtle. Avoid the cars and reach the other side to level up.
A fun turtle race game where you can bet on which turtle will win.
- File: turtle_race/turtle_race.py
- How to Play: Run the script and follow the on-screen instructions to place your bet and watch the turtles race.
- Python 3.x
- Turtle graphics library (usually included with Python)
- Clone the repository:
git clone https://github.com/theOrganizedMind/python_games.git cd python_games - Navigate to the directory of the game you want to play and run the main script. For example, to play Blackjack: cd blackjack python blackjack.py
This project is licensed under the MIT License. See the LICENSE.txt file for details.