Therefore, programming is not only used to learn knowledge, but more importantly, programming can cultivate students' logical thinking. Computer programs are a rigorous way of thinking. Children use programming to play games, such as building a hut with building blocks. In this process, they need to master the connection of various components and solve the problem step by step. The whole simple programming process tests whether students have systematic logical thinking and problem-solving ability. In the programming environment, in order to make more interesting games, it is quite remarkable for friends to communicate with each other or search for relevant resource references themselves to improve their self-learning ability.