For my AI class I had to write a “Dots and Boxes” AI. The assignment only required handling input and being able to play the game. However I wanted to do something extra and incorporate graphics. Therefore I had written a GDI based UI which helped me learn more about the low level windows API…