Programmer-readable note that is inserted directly into the source code of the program. Gets ignored by the compiler
// The player just drank a potion of blindness and can not see anything
sight = 0
Giving reason on why the code are doing the instruction
// We need to multiply quantity by 2 here because they are bought in pairs
cost = quantity * 2 * storePrice;
Giving explanation on why the formula is like that
// We decided to use a linked list instead of an array because
// arrays do insertion too slowly.
// We're going to use Newton's method to find the root of a number because
// there is no deterministic way to solve these equations.
Reminding or tell someone else for the decision made
// Set sight range to 0
sight = 0;
Obvious statements
// Calculate the cost of the items
cost = quantity * 2 * storePrice;