import driver def letter(row, col): if(row == col): return 'X' elif (row == 6-col): return 'X' return 'O' if __name__ == '__main__': driver.comparePatterns(letter)
#Pattern07 import driver def letter(row, col): if col > 6 and col < 10 and row > 3 and row < 6: return 'X' elif col > 3 and col < 10 and row > 1 and row < 6: return 'Z' elif col > 6 and col < 13 and row > 3 and row < 7: return 'B' else: return 'T' if __name__ == '__main__': driver.comparePatterns(letter)
import driver def letter(row, col): if row == 20 and col == 20: return 'A' if __name__ == '__main__': driver.comparePatterns(letter(20, 20))