Coding Standards - Ayub12/Battleship GitHub Wiki

Coding Standards we should use include the following:

Syntactical Conventions:

  • Using correct indentation when nesting
  • Placing the opening curly brackets on a new line on the same indentation as the closing curly bracket

Naming Conventions:

  • All variables must have meaningful and relevant names
  • Constant variables must contain all capitals
  • local variables must use camel case