Skip to content

Instantly share code, notes, and snippets.

@qoobaa
Created March 21, 2012 21:35
Show Gist options
  • Save qoobaa/2153124 to your computer and use it in GitHub Desktop.
Save qoobaa/2153124 to your computer and use it in GitHub Desktop.
// state = {
// deal: {
// n: ["HA", "..."],
// e: ["DA", "..."],
// s: ["SA", "..."],
// w: ["CA", "..."]
// },
// vulnerability: "BOTH",
// dealer: "E",
// bids: ["PASS", "1C", "X", "..."],
// cards: ["HA", "H2", "..."]
// };
var Bridge = {};
Bridge.isBidAllowed = function (state, bid) {
};
Bridge.isCardAllowed = function (state, card) {
};
Bridge.getCurrentDirection = function (state) {
};
Bridge.getCurrentPhase = function (state) {
};
Bridge.getContract = function (state) {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment