Writing go code to learn chess programming