Skip to content

Instantly share code, notes, and snippets.

Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@17Chad
17Chad / tictactoe_tictactoe.py
Created July 21, 2020 07:09
TicTacToe - Jetbrains Academy
string = ' '
dash = '-' * 9
#string = string.replace('_', ' ')
grid = [[string[0], string[1], string[2]], [string[3], string[4], string[5]], [string[6], string[7], string[8]]]
def board():
grid = [[string[0], string[1], string[2]], [string[3], string[4], string[5]], [string[6], string[7], string[8]]]
print(dash)
for row in grid:
s = '| {0} {1} {2} |'.format(row[0], row[1], row[2])