Build 5 Games in Python | Beginner Portfolio Project
Build a Mini Game App with 5 games in Python. This is a Python Beginner Tutorial and a great portfolio project! Hope you enjoy it :)
Replit: replit.com?KZread&YT_SEO& *
My code: replit.com/@patloeber/Mini-Ga...
The Games:
- Guess The Number Python
- Rock Paper Scissors Python
- Wordle Python
- Connect Four Python
- Tic Tac Toe Python
Get my Free NumPy Handbook:
www.python-engineer.com/numpy...
✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: sourcery.ai/?... *
⭐ Join Our Discord : / discord
📓 ML Notebooks available on Patreon:
/ patrickloeber
If you enjoyed this video, please subscribe to the channel:
▶️ : / @patloeber
~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
🖥️ Website: www.python-engineer.com
🐦 Twitter - / patloeber
✉️ Newsletter - www.python-engineer.com/newsl...
📸 Instagram - / patloeber
🦾 Discord: / discord
▶️ Subscribe: / @patloeber
~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
🅿 Patreon - / patrickloeber
#Python
Timeline:
00:00 - Introduction
01:47 - Guess The Number
08:38 - Rock Paper Scissors
13:47 - Wordle
27:19 - Connect Four
43:42 - Tic Tac Toe
Joystick icon created by Good Ware - Flaticon: www.flaticon.com/free-icons/j...
----------------------------------------------------------------------------------------------------------
* This is a sponsored link or an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏
Пікірлер: 27
Did you manage to implement all TODOs? Share it below 👇 And big thanks to Replit for making this video possible! Check it out here: replit.com?KZread&YT_SEO& * My code: replit.com/@PythonEngineer1/Mini-Games-1 ---------------------------------------------------------------------------------------------------------- * This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏
Nice man!
This video deserves 1million Keep it up
@patloeber
2 жыл бұрын
thank you!!
Thank you 😊
😍❤️❤️💕 WOW amazing 😍😄
Thanks :)
Thanks 😀😀😀
in the Wordle game, the only change for the TODO is: with open("words.txt", "r") as db: words = db.readlines()
@patloeber
2 жыл бұрын
Almost! Try it, but there is one more small fix you have to do then
@victorcampos5598
2 жыл бұрын
@@patloeber what else?
@patloeber
2 жыл бұрын
@@victorcampos5598 when you readlines() the words look like this: "hello ". So you must remove the new line characters...
While python is not the best language to make games, i love the content and work you put in for beginners as most noob programmers mess around with games a lot!
@kajekage9410
Жыл бұрын
What do you think is best for making games?
@baristoprak
Жыл бұрын
@@kajekage9410 unity uses c# and unreal engine uses c++
@kajekage9410
Жыл бұрын
@@baristoprak ok?
I am a Data Science student and wanting to improve my coding skills. Is it important to practice building games to improve my coding skills in the data field? like is the thought process for these two related? btw, thanks for the tutorial. love it! ❤️
Can you please make django tutorials,Mr. Patrick? Something like portfolio..........
Does rich work in Pycharm? Because I installed it and followed the video, but the colors aren't working for me. Love the video btw!
Hell yeah
TODO for Guess The Number: value = input(txt) if value == "1": upper_limit = int(input("Choose a number to represent the upper limit: ")) guess_the_number(upper_limit) TODO for Rock Paper Scissors (Not entirely sure if I correctly understood the task): while True: user_input = input(f"Select a choice either {r}, {p} or {s}: ") computer_input = random.choice(all_choices) if user_input not in all_choices: print("Invalid Choice") return print(f"You chose {user_input} and The Computer chose {computer_input}") if user_input == computer_input: print("Tie") elif user_input == r and computer_input == s: print(f"You won. {r} smashes {s}") elif user_input == p and computer_input == r: print(f"You won. {p} covers {r}") elif user_input == s and computer_input == p: print(f"You won {s} cuts {p}") elif computer_input == r and user_input == s: print(f"The Computer won. {r} smashes {s}") elif computer_input == p and user_input == r: print(f"The Computer won. {p} covers {r}") else: print(f"The Computer won. {s} cuts {p}") play_again = input("Do you want to play again? (Y/N): ") if play_again.lower() != "y": break
Just started learn Python. Made my first Quiz game project with using excel file as a question library with randomly shuffled questions and checking all user inputs... And now I feel so dumb after this video xD
@patloeber
2 жыл бұрын
haha, great you found the video then :)
can you share todo of wordle game?
Liebe, Glaube, Leidenschaft❤
@patloeber
2 жыл бұрын
FCN!
re: WORDLE. You know that's NOT how WORDLE is scored, right? Examples : target = QUIET guess = EVADE should score 10000 and not (as your implementation gave) 10001* (explanation -- only the first instande of E in the guess should count against the _single_ instance of E in target) or target = QUIET guess = TWEET should score 00022 and not (as your implementation would give) 10122* (explanation -- the final ___ET in the guess TWEET are in correct position, so each letter scores 2. Having already been scored against the _single_ instances of E and T in target, there is nothing for the "remaining" TWE__ to score against) *where 1 = letter in word but not in right place 2 = letter in word in correct place and each scoring letter in guess is scored only once (scores of 2 preferred over scores of 1)