Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Unsolved
- test.expect(isSolved([[0,3,3],
- [3,3,3],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,0,3],
- [3,3,3],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,3,0],
- [3,3,3],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [0,3,3],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [3,0,3],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [3,3,0],
- [3,3,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [3,3,3],
- [0,3,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [3,3,3],
- [3,0,3]]) is -1)
- test.expect(isSolved([[3,3,3],
- [3,3,3],
- [3,3,0]]) is -1)
- # X Across
- test.expect(isSolved([[1,1,1],
- [3,3,3],
- [3,3,3]]) is 1)
- test.expect(isSolved([[3,3,3],
- [1,1,1],
- [3,3,3]]) is 1)
- test.expect(isSolved([[3,3,3],
- [3,3,3],
- [1,1,1]]) is 1)
- # X Down
- test.expect(isSolved([[1,3,3],
- [1,3,3],
- [1,3,3]]) is 1)
- test.expect(isSolved([[3,1,3],
- [3,1,3],
- [3,1,3]]) is 1)
- test.expect(isSolved([[3,3,1],
- [3,3,1],
- [3,3,1]]) is 1)
- # X Diagonal
- test.expect(isSolved([[1,3,3],
- [3,1,3],
- [3,3,1]]) is 1)
- test.expect(isSolved([[3,3,1],
- [3,1,3],
- [1,3,3]]) is 1)
- # O Across
- test.expect(isSolved([[2,2,2],
- [3,3,3],
- [3,3,3]]) is 2)
- test.expect(isSolved([[3,3,3],
- [2,2,2],
- [3,3,3]]) is 2)
- test.expect(isSolved([[3,3,3],
- [3,3,3],
- [2,2,2]]) is 2)
- # O Down
- test.expect(isSolved([[2,3,3],
- [2,3,3],
- [2,3,3]]) is 2)
- test.expect(isSolved([[3,2,3],
- [3,2,3],
- [3,2,3]]) is 2)
- test.expect(isSolved([[3,3,2],
- [3,3,2],
- [3,3,2]]) is 2)
- # O Diagonal
- test.expect(isSolved([[2,3,3],
- [3,2,3],
- [3,3,2]]) is 2)
- test.expect(isSolved([[3,3,2],
- [3,2,3],
- [2,3,3]]) is 2)
- # Cat's Game
- test.expect(isSolved([[1,2,1],
- [2,1,2],
- [2,1,2]]) is 0)
Advertisement
Add Comment
Please, Sign In to add comment