An open API service indexing awesome lists of open source software.

https://github.com/victorqribeiro/bridge

A JavaScript implementation of the bridge game.
https://github.com/victorqribeiro/bridge

bridge-problem farmer-wolf-goat-cabbage game javascript

Last synced: 25 days ago
JSON representation

A JavaScript implementation of the bridge game.

Awesome Lists containing this project

README

        

# Bridge

A JavaScript implementation of the bridge game.

![bridge](screenshot.png)

A live version of it is hosted [here](https://victorribeiro.com/bridge)

## Rules

The farmer is the only one who can pilot the boat. The boat only carries two at a time. The goat can never be left alone with the cabbage, or it will devour it. The wolf also cannot be left alone with the goat, or it will eat it too. Can you cross them all?

## How to play

Click on the farmer, wolf, goat or cabbage to enter or leave the boat. Click the boat to cross the river - it'll only do it if the farmer is inside.