Reference implementation for j-chess-server
I strongly advise not to base your AI on this client since it uses the server Position class to generate moves. This class is extremely inefficient for generating moves which will put your AI at a significant disadvantage.