The use of the Unity3D video game engine was chosen for the development of the prototype, focusing on the subject of tangible programming, In order to improve the traditional methods of teaching mathematics. The tests were made to 8-year-old students who were in the third grade of elementary school. The focus of the design was given according to trial and error sessions, which helped to improve the understanding of the movement based on mathematical challenges. To develop the video game "MATELOGIC" the pattern Pipes and Filters combined with the ACOT model were chosen. In the present investigation it was possible to verify that the combination of algorithmic thinking concepts and the interaction of video games provide favorable results in learning, surpassing traditional methods.