VHc@sddkTddkZdaetadZetadZda dZ dZ dZ d Z d Zd Zd Zd ZdZedS(i(t*NiiicCs~xwtdtD]f}ttd|ttt|tittt|tdt|ttitqWdS(Nii(tranget BOARDSIZEtLinetPointtPPSt WINDOWSIZEtdrawtwin(ti((s TicTacToe2.pytdrawGrids0cCs%tt|tdt|tdS(scoordinates of center of squarei(RR(trowtcol((s TicTacToe2.pyt rectCenterscCstt|tt|tS(s'coordinates of top left of inset X or O(RRtINSET(R R ((s TicTacToe2.pyt rectUpperLeftscCs%tt|dtt|dtS(s+coordinates of bottom right of inset X or Oi(RRR(R R ((s TicTacToe2.pytrectLowerRightscCs!tt|dtt|tS(s(coordinates of top right of inset X or Oi(RRR(R R ((s TicTacToe2.pytrectUpperRight!scCs!tt|tt|dtS(s*coordinates of bottom left of inset X or Oi(RRR(R R ((s TicTacToe2.pyt rectLowerLeft%scCsTtt||t||ittt||t||itdS(sDraw an X in the given squareN(RRRRRRR(R R ((s TicTacToe2.pytdrawX+s(cCs+tt||tdtitdS(sDraw an O in the given squareiN(tCircleR RRRR(R R ((s TicTacToe2.pytdrawO0scCstd}|djo&t|attattantdttat t ddt ddt i dtidS(Ns&Enter board size (Press Enter for 3): tsTicTacToe version 2iiii(t raw_inputtevalRRt BOARDRANGERRtGraphWinRR RRttimetsleeptclose(tuserSize((s TicTacToe2.pytmain4s       (t zellegraphicsRRRRRRRtNoneRR R RRRRRRR(((s TicTacToe2.pyts"