victorqribeiro / bridge

A JavaScript implementation of the bridge game.

Home Page:https://victorribeiro.com/bridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bridge

A JavaScript implementation of the bridge game.

bridge

A live version of it is hosted here

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.

About

A JavaScript implementation of the bridge game.

https://victorribeiro.com/bridge

License:MIT License


Languages

Language:JavaScript 85.5%Language:HTML 13.4%Language:CSS 1.0%