stupid question: if your game is open source, how do you prevent some random dude from ripping your code and releasing a slightly different version?
You don't. Giving people the right to do this is the whole point of open source.
If that possibility is not acceptable then don't open source your game.
Open source licenses shouldn't be viewed as a marketing strategy; it's a gift.