We call it porting. We port a game from a platform to another. We have another engine that will use the code and change or transform the code into that other platform.
As well, we need communication capabilities, because we want them to communicate, but sometimes the game will be different. For example, if you play with your finger on a screen, or you play with a mouse on a table, you won't have the same interaction. You have to adapt the game. It's not only translating code; the graphic design, the human interface, the relationship has to change too.