How to structure code - PygameProjects/battleship GitHub Wiki

Whitespace

  • Use 4 spaces for indentations
  • Limit lines to 80 characters
  • Two blank line between functions
  • Three blank lines between classes

Naming

  • joined_lower for functions, methods, attributes
  • ALL_CAPS for constants
  • StudlyCaps for classes