The idea of return true to win exercises is to build a value such as a given function returns true . Values can be of any type but can also be restricted to objects, arrays, functions depending on the problem statement. This article focuses on applying property based testing to solve such problems.

Examples of such puzzles are available at: https://alf.nu/ReturnTrue

A proof of concept based on fast-check framework is available at https://github.com/dubzzz/breaking-return-true-to-win/