libgen
[arrocco.git] / lib.py
blob4c0c7ccf0d979af387a6a5403ace3a7f3c11c760
1 # lib.py
2 # 1 Mar 2007
4 """
5 This file is part of Arrocco, which is Copyright 2007 Thomas Plick
6 (tomplick 'at' gmail.com).
8 Arrocco is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 Arrocco is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 """
22 import ctypes
23 int64 = ctypes.c_ulonglong
25 from bits import *
28 def load():
29 lib = ctypes.cdll.LoadLibrary("./libarrocco.so")
30 lib.makeChildren.restype = ctypes.c_int
31 lib.getTurn.restype = ctypes.c_int
33 return lib
36 lib = load()