Are you talking about Harry Potter and the Methods of Rationality?