Google interview question

Design an API for a game