#!/usr/bin/env python3
# -*- coding: utf-8 -*-
class Card:
	suitNames = ["♣️ Klaveren️", "♦️️ Ruiten", "♥️️ Harten", "♠️ Schoppen️"]
	rankNames = ["Joker", "Aas", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Boer", "Vrouw", "Heer"]

	def __init__(self, suit, rank, id, trickCard):
		self.suit = suit
		self.rank = rank
		self.id = id
		self.trickCard = trickCard

	#return info about a card
	def __str__(self):
		return '%s \t%s\t %s' % (self.id, Card.suitNames[self.suit], Card.rankNames[self.rank])

	def cardId(self):
		return self.id

	def cardRank(self):
		return '%s' % (self.rank)

	def cardSuit(self):
		return '%s' % (self.suit)

	def toJSON(self):
		return {
			'id': self.id,
			'suit': self.suit,
			'trickCard': self.trickCard,
			'rank': self.rank
		}
