Applying fundamentals of bowling and batting to a game…