This paper attempts to introduce the application of Foxpro to planning the schedule of games in school sports. Based on the analysis of eventplanning requirements the author deals with the collision between events by bipartite matching and searching according to the fourcolour the orem.