vifon/buckets
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Pseudo-game based on this puzzle: "You have a 3 and a 5 litre water container, each container has no markings except for that which gives you it's total volume. You also have a running tap. You must use the containers and the tap in such away as to exactly measure out 4 litres of water. How is this done?" You can pass alternative sizes of the buckets in two arguments. Controls: u - fill the left bucket i - fill the right bucket j - empty the left bucket k - empty the right bucket h - pour the water from the right bucket to the left l - pour the water from the left bucket to the right q - quit Victory is NOT signalized in any way.