tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code23:42

Refactoring a Battleship Game in Python // Code Roast Part 2 of 2

ArjanCodes ↗

From the creator

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In the second and final part of this code roast where I'm refactoring a battleship game, I look more closely at how the data is structured and refactor the code to make it beautiful and clean. The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-coderoast-battleship. Part 1 of this series: https://youtu.be/u3yo-TjeIDg 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 1:00 Moving out magic numbers into constants 2:57 Creating a BattleshipBoard class 11:34 Simplifying the logic in the Game class 20:35 Final overview of the changes #arjancodes #softwaredesign #python

Published 2022-03-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code