First of all, download the game from the link below:
You can play the game by yourself or your friend
or execute player and this code will play with you by giving you it's desired position code
Sample run:
Choose your color: W[hite] / B[lack]
> W #`W` means the COM player is White one
@0+ #This is the player's desired position
# you can see the position's code at the right bottom of 'Trax game'
> #Now waits for your desired position
And game will go on until one player win the game