texas.js
function (format) {
	return function (card) {
		card = getCode(card);
		if (!card)
			return undefined;
		card--;
		return format({rank: card >> 2, suit: card & 3});
	};
}
function (format) {
	return function (card) {
		card = getCode(card);
		if (!card)
			return undefined;
		card--;
		return format({rank: card >> 2, suit: card & 3});
	};
}
function ( format ) { return function ( card ) { card = getCode ( card ) ; if ( ! card ) return undefined ; card -- ; return format ( { rank : card >> 2 , suit : card & 3 } ) ; } ; }
Helper function to create card formatters.
Helper function to create card formatters .