In this program I want to be able to record the wins, loses and ties of both sides. Ideally, I like the program to have the function and interface like this one: http://ostermiller.org/calc/tictactoe.html. But I have no idea what the source code in the second link is doing, hence my attempt on the imitation of the logic of the first link. I don't however, need the computer level selection in the second link, a normal difficulty would be fine.
Anybody can tell me where to start? Thanks.
Edit: It seems like I only need to add a human vs human function to the first program, can anyone help me on this?