UNPKG

cardation

Version:

fundation of card games, card model

15 lines (14 loc) 377 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // super class of all kinds of cards class Card { /** * Determine whether two cards are the same, according to the card id. * @param {Card} other * @returns {boolean} */ equals(other) { return this.getCardId() == other.getCardId(); } } exports.default = Card;