For just making out the logic, you can simply print the board every move, you can do this in standard C. For any more complicated output, you need some console or graphics. For console, the most standard method is to use terminal escape sequences, but these don't work in Windows, except maybe if you have some special console. Using curses library is not a good solution, as it makes sense to use terminal escape sequences only for the most simple output, for anything more complicated it's better to use some graphical user interface, such as GTK, which is good because it's cross-platform. For 2d games also sdl can be used, the biggest advantage of which is that it is fast, if you really need so much speed, or opengl, if you need 3d, but you can use these two mostly only for games.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: