The correct answer is algorithm.
An algorithm is a set of rules which needs to be followed exactly as prescribed in order to achieve perfect results every time. The term is usually used when it comes to computers and technology, but it can be applied to 'real life' as well, describing rules which are fool-proof when it comes to solving a problem.