I think i may release it as a open source project, but the ai mechanic is a little broken. If you want an advance on how i made it, look up "Minimax algorithm for chess". The code i wrote for this one was based on a javascript implementation for that algorithm.