Completed
Branch docs (a64d16)
by Kyle
01:29
created

Dice._get_nb_dices()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
c 2
b 1
f 0
dl 0
loc 2
rs 10
1
"""
2
    This module provides a simple CFFI API to libtcod.
3
4
    This port has large partial support for libtcod's C functions.
5
    Use tcod/libtcod_cdef.h in the source distribution to see specially what
6
    functions were exported and what new functions have been added by TDL.
7
8
    The ffi and lib variables should be familiar to anyone that has used CFFI
9
    before, otherwise it's time to read up on how they work:
10
    https://cffi.readthedocs.org/en/latest/using.html
11
12
    Otherwise this module can be used as a drop in replacement for the official
13
    libtcod.py module.
14
15
    Bring any issues or requests to GitHub:
16
    https://github.com/HexDecimal/libtcod-cffi
17
"""
18
from __future__ import absolute_import as _
19
20
import os as _os
21
22
import re as _re
23
24
from tcod.libtcodpy import *
25
from tcod.tcod import *
26
27
with open(_os.path.join(__path__[0], 'version.txt'), 'r') as _f:
28
    # exclude the git commit number (PEP 396)
29
    __version__ = _re.match(r'([0-9]+)\.([0-9]+).*?', _f.read()).groups()
30
    assert __version__, 'version.txt parse error'
31
32
__all__ = [name for name in list(globals()) if name[0] != '_']
33