Coverage for app/pycardgame/__init__.py: 100.0%
4 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-07 20:57 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-07 20:57 +0000
1"""
2PyCardGame — A base library for creating card games in Python.
4Overview
5--------
7This library provides a base for creating card games in Python. It includes
8generic classes for cards, decks, games, and players, as well as a preset
9UNO game with its cards and deck.
11It is designed to be extended and customised for specific games.
13License
14-------
16Copyright (C) 2025 Popa-42
18This program is free software: you can redistribute it and/or modify
19it under the terms of the GNU General Public License as published by
20the Free Software Foundation, either version 3 of the License, or
21(at your option) any later version.
23This program is distributed in the hope that it will be useful,
24but WITHOUT ANY WARRANTY; without even the implied warranty of
25MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26GNU General Public License for more details.
28You should have received a copy of the GNU General Public License
29along with this program. If not, see <https://www.gnu.org/licenses/>.
30"""
32from .src.base import (
33 CardMeta,
34 DeckMeta,
35 GenericCard,
36 GenericDeck,
37 GenericGame,
38 GenericPlayer,
39)
41from .src.presets import (
42 DrawTwoCard,
43 NumberCard,
44 ReverseCard,
45 SkipCard,
46 UnoCard,
47 UnoDeck,
48 UnoGame,
49 UnoPlayer,
50 WildCard,
51 WildDrawFourCard,
52)
54__all__ = [
55 "CardMeta",
56 "DeckMeta",
57 "DrawTwoCard",
58 "GenericCard",
59 "GenericDeck",
60 "GenericGame",
61 "GenericPlayer",
62 "NumberCard",
63 "ReverseCard",
64 "SkipCard",
65 "UnoCard",
66 "UnoDeck",
67 "UnoGame",
68 "UnoPlayer",
69 "WildCard",
70 "WildDrawFourCard",
71]
73print("""
74 PyCardGame Copyright (C) 2025 Popa-42
75 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
76 This is free software, and you are welcome to redistribute it
77 under certain conditions; type `show c' for details.
78""")