Channel: @ArjanCodes
Yes! Time for another Code Roast! In this video, I'm refactoring a Battleship game. I first analyze the code and then refactor it to make the code cleaner and easier to reuse. In this first part, I concentrate on making the code that reads user input more generic.
The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-coderoast-battleship.
💡 Get my FREE 7-step guide to help you consistently design great software: https://arjancodes.com/designguide.
💻 ArjanCodes Blog: https://www.arjancodes.com/blog
🎓 Courses: The Software Designer Mindset: https://www.arjancodes.com/mindset The Software Designer Mindset Team Packages: https://www.arjancodes.com/sas The Software Architect Mindset: Pre-register now! https://www.arjancodes.com/architect Next Level Python: Become a Python Expert: https://www.arjancodes.com/next-level-python The 30-Day Design Challenge: https://www.arjancodes.com/30ddc
🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.
👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!
💬 Discord: https://discord.arjan.codes 🐦Twitter: https://twitter.com/arjancodes 🌍LinkedIn: https://www.linkedin.com/company/arjancodes 🕵Facebook: https://www.facebook.com/arjancodes
👀 Code reviewers:
🎥 Video edited by Mark Bacskai: https://www.instagram.com/bacskaimark
🔖 Chapters: 0:00 Intro 1:13 Overview of the game code 4:22 Analysis of the code 12:26 Refactoring the user input mechanism 16:22 Refactoring the main function 18:22 Refactoring reading the player guesses 22:26 Updating the game logic method 24:18 Outro
#arjancodes #softwaredesign #python
DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!