First, you have to get to know the game. Find out what it likes, what it doesn't, etc... Then you have to decide whether or not you think the game is willing to be in a relationship, with you or with anyone. Next, you have to give clues and try to hint that you like the game, too, and gauge its reaction to that. Lastly, you ask the game out and hope for the best.
Hope this helps!