Ai 56
Ai 56
Ai 56
OUTPUT
Enter the cpacity of jug1 : 4
Enter the capacity of jug2 : 6
Enter the target you want to achive : 2
(0,0)
(0,6)
(4,0)
(4,6)
(4,2)
(0,2)
Assignment 5(b)
OUTPUT
Player X turn
---
---
---
Enter row and column numbers to fix spot: 3 3
Player O turn
---
---
--X
Enter row and column numbers to fix spot: 1 1
Player X turn
O--
---
--X
Enter row and column numbers to fix spot: 1 3
Player O turn
O-X
---
--X
Enter row and column numbers to fix spot: 2 3
Player X turn
O-X
--O
--X
Enter row and column numbers to fix spot: 3 1
Player O turn
O-X
--O
X-X
Enter row and column numbers to fix spot: 2 2
Player X turn
O-X
-OO
X-X
Enter row and column numbers to fix spot: 3 2
O-X
-OO
XXX
Assignment 6(a)
visited = set()
OUTPUT
OUTPUT
The Breadth First Search Traversal is :
1
3
2
4
5