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

Channel: ArjanCodes

Acerca de

💡 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