A command line version of classic river crossing puzzle