Abstract:The program of typing match is a game program which used to test many indicators of typing, like speed, accuracy and so on. Many schools use it to strengthen students mastery of basic computer skills. The traditional algorithm is based on the keywords matching algorithm, only can get the location information, but the game program is the program of matching between two large text segment, it need get more matching information, so the traditional algorithm is unable to meet the requirement. On the basis of traditional algorithm, a new matching algorithm was designed by the exploration and research of the practical problems. This algorithm can match between the two text, and get the correct content, the error content and other information. So wrote a software in this algorithm, proved the feasibility and practicality of this algorithm.