How player can program inside the game?? Pls help!!!

I m designing a game in which player can make a circuit, you know all that transistors and stuff, and after making the circuit he can program it in the game. Once programmed the circuit will work as the user has programmed it to work. I am done with all the map/environment thing and i have also set it up in the ureal engine 4. Can anyone help me out with how to add that “programming-in game” feature? What knowledge will I need to accomplish this?

Thanks in advance.

Sorry, we’ll need a lot more info than that to help you. :frowning: