In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to realize Sudoku Game Robot in android". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Sudoku robot for this application
The answer logic is not completed, mainly because the game response touchscreen event parameters need to be adjusted, the simple use of input tap, the interface response is not normal.
Import sys posinfo0= {(0): 8, (2): 3, (3): 6, (1): 7, (4): 9, (6): 2, (1): 5, (5): 7, (4): 4, (5): 5, (6): 7, (3): 1, (7): 3): 1, (7): 6): 6, (8): 8 (2,7):8,(3,7):5,(7,7):1, (1,8):9,(6,8):4, }maskmap={1535553906:5,2441400:7,305175776:1,2746585781:6,1577050781:9,2756722681:8,1586816406:9,2756351406:6,2993066431:2,2758694531:3,1535569531:5,2756738306:8,1528222656:9,1525882656:6,2942285181:2,1535944531:5,1232906556:4,2709863281:3,1525882031:6,2707910181:8,1535960156:5,1477441406:9,2944238306:2,1525878901:1,2707910156:3,1477050781:6,2758691406:3,3002832056:2,2705941436:8,1242672181:4,1535647656:5,2705957686:8,1479394531:9,1487191406:3,2707894556:8,502832031:2,2705941431:8, } def ocr (img): global posinfo0 Maskmap posinfo0= {} for x in xrange (0Magn9): for y in xrange (0pyr9): x0 = (xcel3) * (257-26) + (x% 3) * (96-26) + 26 y0 = (ypic3) * (432-179) + (y% 3) * (255179) + 179x1roomx0 + (88-26) y1roomy0 + (240179) dig=img.crop X1memy1)) throd=100 res=0 for marg_left in xrange (0MagneDig.size [0] / 2quo2): for t in xrange (0reparentidig.size [1]): if dig.getpixel ((marg_left, t)) [0]
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.