Out of boredom one day I decided to see how much programming I forgot since I finished high school (it was alot)

I plugged this out without help but since I don't want to leave it as 1's and 2's I am trying to convert to x, o's but I can't remember anything except int's

My main problem is int's and char's interacting

The following code works fine in Linux but is based on 1's and 2's

// Program: Tic Tac Toe
// Created by: Christopher Hodgins
// E-Mail: [email protected]
// License: GPL
// Version: 0.2

int ch, pl, tn, wn,
aa, ab, ac,
ba, bb, bc,
ca, cb, cc;

main()
{
start:;

system("clear");
printf("\n %d | %d | %d",aa,ab,ac);
printf("\n-----------");
printf("\n %d | %d | %d",ba,bb,bc);
printf("\n-----------");
printf("\n %d | %d | %d",ca,cb,cc);

if (aa==pl && ab==pl && ac==pl) { wn=pl; }
if (ba==pl && bb==pl && bc==pl) { wn=pl; }
if (ca==pl && cb==pl && cc==pl) { wn=pl; }
if (aa==pl && ba==pl && ca==pl) { wn=pl; }
if (ab==pl && bb==pl && cb==pl) { wn=pl; }
if (ac==pl && bc==pl && cc==pl) { wn=pl; }
if (aa==pl && bb==pl && cc==pl) { wn=pl; }
if (ac==pl && bb==pl && ca==pl) { wn=pl; }
if (wn >= 1) { printf("\n\nPlayer %d wins.\n\n",pl); goto end; }

if (pl == 2) { pl=0; }
pl=pl+1;
tn=tn+1;

if (tn == 10) { printf("\n\nCat's Game\n\n"); goto end; }

printf("\n\nPlayer %d what is your move? ",pl);
scanf("%d",&ch);
switch (ch)
{
case 1: { aa=pl; goto start; }
case 2: { ab=pl; goto start; }
case 3: { ac=pl; goto start; }
case 4: { ba=pl; goto start; }
case 5: { bb=pl; goto start; }
case 6: { bc=pl; goto start; }
case 7: { ca=pl; goto start; }
case 8: { cb=pl; goto start; }
case 9: { cc=pl; goto start; }
case 0: { goto end; }
default: { goto start; }
}
end:;
}

---------------------------------------------------

Here is my current try at converting it what ever is commented is not converted yet

---------------------------------------------------

// Program: Tic Tac Toe
// Created by: Christopher Hodgins
// E-Mail: [email protected]
// License: GPL
// Version: 0.2.5

int ch, pl, tn, wn;
char aa[1], ab[1], ac[1],
ba[1], bb[1], bc[1],
ca[1], cb[1], cc[1];

main()
{
start:;

system("clear");
printf("\n %s | %s | %s",aa,ab,ac);
printf("\n-----------");
printf("\n %s | %s | %s",ba,bb,bc);
printf("\n-----------");
printf("\n %s | %s | %s",ca,cb,cc);

// if (aa==pl && ab==pl && ac==pl) { wn=pl; }
// if (ba==pl && bb==pl && bc==pl) { wn=pl; }
// if (ca==pl && cb==pl && cc==pl) { wn=pl; }
// if (aa==pl && ba==pl && ca==pl) { wn=pl; }
// if (ab==pl && bb==pl && cb==pl) { wn=pl; }
// if (ac==pl && bc==pl && cc==pl) { wn=pl; }
// if (aa==pl && bb==pl && cc==pl) { wn=pl; }
// if (ac==pl && bb==pl && ca==pl) { wn=pl; }
// if (wn >= 1) { printf("\n\nPlayer %d wins.\n\n",pl); goto end; }

if (pl == 2) { pl=0; }
pl=pl+1;

tn=tn+1;
if (tn == 10) { printf("\n\nCat's Game\n\n"); goto end; }

printf("\n\nPlayer %d what is your move? ",pl);
scanf("%d",&ch);

switch (ch)
{
// case 1: { if (pl=1) { aa=x }; goto start; }
// case 2: { ab=pl; goto start; }
// case 3: { ac=pl; goto start; }
// case 4: { ba=pl; goto start; }
// case 5: { bb=pl; goto start; }
// case 6: { bc=pl; goto start; }
// case 7: { ca=pl; goto start; }
// case 8: { cb=pl; goto start; }
// case 9: { cc=pl; goto start; }
// case 0: { goto end; }
// default: { goto start; }
}
end:;
}