Game rules can be found in aseanchess.org.
There is a special rule in this variant which could be a little challenge to the programmer but this rule can be ignored for a moment.
Section 5.2.e
As soon as a player has only a king left on his side, the number of pieces belong to the opponent shall be observed. The game may be drawn if the player having only a king (lone king) left on his side can manage to escape in a number of fixed moves (move count shall be done starting from the very first move of lonely king) against the opponent of having particular pieces shown below:
Lone King vs. King & A Rook 16 moves
Lone King vs. King & A Bishop & A Queen 44 moves
Lone King vs. King & A Knight & A Queen 64 moves