plan very carefully with every conceivable possibility taken into account
The Chinese idiom, Pinyin is j ǔ w ú y í C è, which means that the stratagem is not miscalculated and describes resourcefulness. From Huainanzi zhushuxun.
Explanation: put forward; strategy: stratagem, method. The source of "Huainanzi · zhushuxun": "there is no strategy for ten thousand cases." The world knows that it can't be. (Tang Yu by Chen Liang in Song Dynasty)
plan very carefully with every conceivable possibility taken into account
cast beans on grounds which are transformed by magic into soldiers - sǎ dòu chéng bīng
sharpen one 's weapon to be ready for a fight - mó lì yǐ xū