I wrote a simple MCTS + Machine Learning engine: herehttps://github.com/thomasahle/fastchess
The MCTS part is only a page or two of python code, and the others are not much more, so you should quickly be able to get the gist.
I'm not currently training it from self play, but one might as well do that.
A question to MCTS + NN experts
Moderators: hgm, Rebel, chrisw