for(let boat = beginfromzero(); boat.avoid("iceberg"); boat.moveforward()) { if(boat.hasdecree("pre-explanatory instructions to navigate to the unreachable secret")) { console.log(boat.revealsecret()); } else { console.log("navigation failed, the secret remains unreachable."); } }