From bda8add9c84148c6124a88dd021065b4b9631a98 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar <47217012+Saurabhsaha027@users.noreply.github.com> Date: Sun, 3 Oct 2021 15:03:42 +0530 Subject: [PATCH] Update Tictoctoe.py --- Tictoctoe.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tictoctoe.py b/Tictoctoe.py index a7e15e7..cbeab96 100644 --- a/Tictoctoe.py +++ b/Tictoctoe.py @@ -2,7 +2,7 @@ import time def board(pName,pc,p,ps,cs): print("\t\t\t : ",pName.upper()+"["+ps+"]", " vs ",pc+"["+cs+"]" ) - print("\t\t\t _____________________________________") + print("\t\t\t (++++++++++++++++++++++++++++++++++++++") print("\t\t\t |1 |2 |3 |") print("\t\t\t | "+p[0]+ " | "+p[1]+" | "+p[2]+" |") print("\t\t\t | | | |") @@ -14,7 +14,7 @@ def board(pName,pc,p,ps,cs): print("\t\t\t |7 |8 |9 |") print("\t\t\t | "+p[6]+ " | "+p[7]+" | "+p[8]+" |") print("\t\t\t | | | |") - print("\t\t\t -------------------------------------") + print("\t\t\t (++++++++++++++++++++++++++++++++++++++") def winner(p,t): if((p[0] == t and p[1] ==t and p[2] == t) or (p[3] == t and p[4] == t and p[5] == t) or @@ -32,7 +32,7 @@ def winner(p,t): if __name__ == '__main__': again=1 print('\n\n\n!!-------------: PlAY ("_") TIC TAC TOE ("_") WITH COMPUTER / Friend :-----------!!') - print("---------------------------------------------------------------------------------") + print("==================================================================================") print("---------: MODE :---------\n 1 - COMPUTER :\n 2 - FRIEND: ") ck = input("Enter Choice : ") while (ck != "1" and ck != "2"): @@ -109,5 +109,7 @@ def winner(p,t): sk=input().upper() if(sk!="YES"): again=0 + "==================================================================================") print("\t\t\t\t\t---->>>-->>>>--THANKU YOU--<<<<<<<<----------------") + "==================================================================================")