Socialpoint interview question

I was asked to write some pseudo code describing how to implement some simple game features.