The Memory blocks game Description: Program to demonstrate t he M emory blocks Game, in which user need to remember the inside pattern of cubic block and then…