When I was a kid, I remember "edutainment" games that were basically like normal computer games, except every so often a homework problem pops up.
I think that doesn't work super well. Better is a game which has you learning naturally, in order to play the game more effectively. For example, I've been enjoying the computer game Slay the Spire recently, and there is a great deal of mental math which is inherent to the game. If I had a kid, I think I might give them that game as a method to motivate them to learn arithmetic.