1234567891011121314151617181920212223242526272829303132333435 |
- '''
- * This file is part of the Chinchon (https://notabug.org/alkeon/chinchon.
- * Copyright (c) 2020 Alejandro "alkeon" Castilla.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, version 3.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- '''
- class Card:
- def __init__(self, number, suit):
- self.number = number
- self.suit = suit
- def get_suit(self):
- return self.suit
- def get_number(self):
- return self.number
- def __str__(self):
- return str(self.number) + self.suit + " "
- def __repr__(self):
- return str(self.number) + self.suit + " "
|