First you observe the game you are trying to recreate closely. If you can understand what happens (actions) and when/why they happen (conditions), then you can start rebuilding the game one event at a time.
If you have any specific questions, then ask again. In the meantime, I recommend following both beginner tutorials on this website first.