My take on the main code for Triple X

So the extent of my knowledge about code in general is from scripting in Batch or Powershell. I think some of that applies here. What I gather is that first part sets the starting and ending parameters. The “while” loop runs the game until the end parameter is met. In the while loop it determines the currently difficulty and upon submission of the player’s answer it will increment the difficulty on success or return the fail response if incorrectly answered. I don’t know what the failbit and buffer clear does.