The increasing prevalence of autism spectrum disorder (ASD) underscores its significant impact on individuals and the importance of early intervention. ASD affects various aspects of life, including education, emotional development, and social interactions. Besides traditional therapeutic approaches, a novel strategy incorporating digital games has been introduced. Four games developed using Makey Makey and Scratch aim to enhance cognitive skills in children with ASD. This approach facilitates emotional and intellectual development, tracks progress, and offers personalized and engaging interventions. This study demonstrated significant improvements in memory and concentration among participants, with an average improvement of 23.38 points. The most notable enhancements were observed in children aged 10, who showed an average improvement of 25.67 points. Additionally, female participants exhibited a slightly higher average improvement compared to males. The Memory Maze game also effectively enhanced cognitive skills in children with different types of ADHD. Children with the Hyperactive-Impulsive type showed the highest average improvement, with 25.00 points, followed by those with the Combined type, with 24.15 points, and the Inattentive type, with 23.53 points. These findings highlight the potential use of these tools in both ASD and ADHD therapy, providing a structured and enjoyable learning environment that supports cognitive development and therapeutic outcomes.