Table of Contents

Game: Farmer and the River

Here we are going to implement the classic “Fox, Chicken, Corn” game.

Rules

The premise of this game involves a farmer with the above-mentioned items that needs to transport them across a stream in a boat.

The boat, unfortunately, is large enough only for the farmer and one item.

There exists the following relationship with the items:

So one needs to craft a careful means of transporting all these items without losing any of them.

Programming Considerations