From 4c651d57b444148d97cd7b663f6824a3db9a1ffd Mon Sep 17 00:00:00 2001 From: koilakuntlamunnaf Date: Sun, 8 Jun 2025 22:29:43 +0530 Subject: [PATCH 1/3] added the necessary changes --- Tic-Tac-Toe/TicTacToe.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Tic-Tac-Toe/TicTacToe.py b/Tic-Tac-Toe/TicTacToe.py index abb03fb6..f132494a 100644 --- a/Tic-Tac-Toe/TicTacToe.py +++ b/Tic-Tac-Toe/TicTacToe.py @@ -116,9 +116,12 @@ def main(): print("Tie game") else: - insertLetter("O", move) - print(f"Computer place O on position {move}") - printBoard(board) + if move == 0 or move is None: + print("Tie game") + else: + insertLetter("O", move) + print(f"Computer place O on position {move}") + printBoard(board) else: print("You win! ") From 6d72361ff0794eba21741b422c0a99c7645304b5 Mon Sep 17 00:00:00 2001 From: koilakuntlamunnaf Date: Sun, 8 Jun 2025 23:49:17 +0530 Subject: [PATCH 2/3] added the change for Webcam access --- .DS_Store | Bin 8196 -> 10244 bytes AI_Attendence_Program/Main.py | 46 ++++++++++++++++++---------------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.DS_Store b/.DS_Store index 5ca7c97a8eaf7ef999047aa5ce92dda5d662edcd..f4eae29e44679e5a986dd8be33db334ba499b31e 100644 GIT binary patch delta 1176 zcmeHH!A{#i5Ph3agdoHYNh%IVfP`8kNGKmr2}n_eT4>r-Rd19e#zZmM5O9DVpod7D zdWd}Ih}2`0W3L?e0luY2c(ajOJK_^+Yj?-%nK$pvtle4b6sG~G4Zpey%+Va)W_Rv5bHO?->*U?0C%hQ#z zr^^Bc#O}G~AIwDyuux!Bi{78ORtB-bxAgSacwxvjOIJNmi8eWS{nPD z-xFXTPBdw}7e?xLQqN+SDY^<<7d}_lK)m66!cpO@(TakM%!WZ|j}t-DcMl$Nq;^2- zBpPGXUWe4$*fBXymnFg9QswZO&zeBTQ2);|?x|~9h+Ju_VNXMxEK+82UYWU8* zA<9N~IQaF?#lkFrTMRC&`o>L*fFGI){s z^*VzRc?w5|Id&N%B^ABZL3_FP#L*C~M7Ygd)hCJI(_6UuEN+RGhcpY%&d8 delta 138 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD7G Date: Sun, 8 Jun 2025 23:56:09 +0530 Subject: [PATCH 3/3] changes made for webcam accessed or nor --- AI_Attendence_Program/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AI_Attendence_Program/Main.py b/AI_Attendence_Program/Main.py index e60fa0ee..4e066588 100644 --- a/AI_Attendence_Program/Main.py +++ b/AI_Attendence_Program/Main.py @@ -46,7 +46,7 @@ def attendance(name): cap = cv2.VideoCapture(0) -#check if Video camera is opened +#check if Video camera is accessed or not if not cap.isOpened(): print("Error: Could not access the webcam") else: