🚀 Day 29/30 – Mini Python App Challenge Built a Turn-Based Battle Game ⚔️ using Python. Features: • Player vs Computer • Attack & Defend mechanics • Health tracking system • Random damage simulation Concepts used: Game loops, state management, random logic GitHub 👇 🔗 https://lnkd.in/dCSFW_Hd Almost at Day 30 🔥 #Python #LearningInPublic #30DaysOfCode #GameDev #github #
Python Turn-Based Battle Game with Player vs Computer
More Relevant Posts
-
Day 19 of #100DaysOfPython Today was about instances, state, and higher-order functions. I built a Turtle Race Game using Python’s turtle module. I created multiple turtle instances, each with its own color and position, then made them race using random movement speeds until one wins. This project helped me understand: How different instances can be created from the same class How each instance maintains its own state (position, movement, etc.) How to use functions in a more flexible way when controlling behavior It was a fun way to see objects come to life and interact on the screen. Starting to think more in terms of objects and behavior, not just lines of code. #100DaysOfCode #100DaysOfPython #Python #OOP #PythonProjects #TurtleGraphics #LearningToCode #CodingJourney #BuildInPublic
To view or add a comment, sign in
-
Day 10/100 – #100DaysOfCode 🚀 Solved LeetCode #66 – Plus One (Python). Today I worked on an array manipulation problem that simulates adding one to a large integer represented as a list of digits. Approach: 1) Traverse the array from the last digit to the first. 2) If the current digit + 1 is not equal to 10, simply increment it and return the array. 3) If the digit becomes 10, set it to 0 and carry over to the next digit. 4) If the carry reaches the first digit, add 1 at the beginning of the array. Time Complexity: O(n) Space Complexity: O(1) Understanding how carry propagation works in arrays 💪 #LeetCode #Python #DSA #Arrays #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
Built a simple rule-based chatbot in Python, using Google colab notebook that simulates automated client responses using menu options and conditional logic. Small project, but seeing the conversation actually work was satisfying. Still improving it, what feature would you add next? #python #Automation #Techlearning #coding
To view or add a comment, sign in
-
Stop using for loops to process data in Python. Do this instead. Day 6/47: Calculating Batting Strike Rates! 🏏 Processing millions of rows with a standard Python loop will freeze your system. The fix? Vectorization. Instead of looping row-by-row, NumPy aligns arrays in memory, executing math (runs / balls) * 100 instantly in parallel. Standard Lists = Slow & Iterative. NumPy Arrays = C-Speed & Parallel. 🔊 Watch my 43-second animated Masterclass to see the data flow! Ever crashed a notebook with a bad loop? Let me know! 👇 #DataScience #NumPy #Python #MachineLearning #CodingJourney #BSCIT
To view or add a comment, sign in
-
🚀 Wrote a Hugging Face BPE Tokenizer visualizer library in python! Tokenization is the heart of modern LLMs, but looking at raw lists of integer IDs isn't exactly intuitive. That's why I created a lightweight Python library to help you visually inspect how Byte-Pair Encoding tokenizer break down your text. ✅ Easy to use ✅ Integrates seamlessly with Hugging Face tokenizers ✅ Perfect for debugging, model building, or just learning how BPE works under the hood! 📦 Try it out: pip install hf-tokenizer-visualizer 🔗 Github and Package links are in the comments #huggingface #tokenizer #deeplearning #python
To view or add a comment, sign in
-
CPython Unveils Chained Assignment Mechanics in Python Bytecode Execution 📌 Chained assignments in Python don’t create separate objects-they share the same underlying instance, a bytecode-level quirk that can silently break your code. A deep dive into CPython’s execution reveals how a = b = [] uses COPY and STORE_FAST to assign the same list to multiple variables, exposing a common pitfall for developers working with mutable data. 🔗 Read more: https://lnkd.in/dUfiAJ44 #Cpython #Pythonbytecode #Chainedassignment #Interpreterexecution #Variablebinding
To view or add a comment, sign in
-
🚀 Day 34 of My Python Full-Stack Journey 🐍 Today, I explored Arrays in Python and understood how they help in storing and managing multiple values efficiently. 🔹 What I learned: • Concept of arrays and how they differ from regular variables • Creating arrays using Python modules like array • Accessing elements using index positions • Performing operations like insertion, deletion, and traversal • Understanding the importance of arrays in handling large datasets 🔹 Key takeaway: Arrays make data handling more structured and efficient, especially when working with collections of similar data types. 💡 Practicing arrays has strengthened my understanding of data structures, which is essential for building efficient applications. Looking forward to diving deeper into more advanced concepts! 🚀 #Python #FullStackDevelopment #LearningJourney #Coding #DataStructures #100DaysOfCode
To view or add a comment, sign in
-
-
🎮 Rock Paper Scissors – Python Another step forward in my Python learning journey. This time I built a Rock Paper Scissors game in Python where the user plays against the computer in the terminal. The game keeps track of the score, validates user input, and allows the player to continue playing multiple rounds. I also focused on making the interaction smoother by guiding the user whenever an invalid input is entered. 🧠 Concepts practiced in this project: • Python lists • Conditional logic • While loops • Random module • Input validation and user interaction 🎮 Try the game: 🔗 Live Demo (Replit): https://lnkd.in/gwJ6C9tP 💻 GitHub Repository: https://lnkd.in/gjkJwvEX Always learning, one small program at a time. 💻 #Python #CodingJourney #LearningToCode #BeginnerProgrammer #100DaysOfCode
To view or add a comment, sign in
-
Dictionaries are the first data structure most Python developers reach for. They're also the one that hides the most bugs. I built a free interactive course, Python Data Containers, that shows you exactly where dicts break and what to use instead. You'll work through NamedTuple, dataclass, and Pydantic side by side, running every example in the browser. By the end, you'll know which container to pick for your use case and why. 🚀 Try the course: https://bit.ly/4rCfJWy #Python #DataScience #InteractiveLearning #Pydantic #dataclass
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development