Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. FONT = ("--X--XXX-XXX-X-X-XXX--XX-XXX-XXX--XX-XX--"
  2. "-XX----X---X-X-X-X---X-----X-X-X-X-X-X-X-"
  3. "--X---XX--X--XXX-XX--XXX--X--XXX-XXX-X-X-"
  4. "--X--X-----X---X---X-X-X-X---X-X---X-X-X-"
  5. "--X--XXX-XXX---X-XX---XX-X---XXX-XX---XX-")
  6.  
  7.  
  8. def recognize(image):
  9. return 1
  10.  
  11. if __name__ == '__main__':
  12. # These "asserts" using only for self-checking and not necessary for auto-testing
  13. assert recognize([[0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0],
  14. [0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0],
  15. [0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0],
  16. [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0],
  17. [0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0]]) == 394, "394 clear"
  18. assert recognize([[0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0],
  19. [0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0],
  20. [0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0],
  21. [0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0],
  22. [0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0]]) == 394, "again 394 but with noise"
  23.  
  24. print("Earn cool rewards by using the 'Check' button!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement