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.
- Host: GitHub
- URL: https://github.com/victorqribeiro/bridge
- Owner: victorqribeiro
- License: mit
- Created: 2018-12-02T22:36:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-22T12:55:32.000Z (about 2 years ago)
- Last Synced: 2025-03-30T23:11:09.881Z (2 months ago)
- Topics: bridge-problem, farmer-wolf-goat-cabbage, game, javascript
- Language: JavaScript
- Homepage: https://victorribeiro.com/bridge
- Size: 658 KB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bridge
A JavaScript implementation of the bridge game.

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.