KRK.tar.gz contains the files needed to make the db. chess.py is needed for reference by the other files. run makeKRK.py, followed by KRKmates.py, and finally playKRK.py, these 3 in turn generating the tablebase. You need numpy installed, as the db is kept in a numpy array, in KRK.pkl as a pickle storage of the array. If you have tkinter, tkKRK.py can be run in a graphic environment as an interface to the tablebase.
KRK.tar.gz