Enter in a box at the start, that will be your box for the rest of the game. then open four boxes, what you open you can no longer get. Then the Banker will give you a deal, type 'd' to take the deal, anything else to no deal. then keep going till you only have two boxes left then you can get a swap, type 's' to take it, and after you win you can see what was in your box and all of the past deals you could have taken. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you don't understand my low-quality explanation, have a look at this highly simplified version of the rules, https://en.wikipedia.org/wiki/Deal_or_No_Deal
Thanks to @Will_Wam for the text engine in the project https://scratch.mit.edu/projects/668054871/ Other than that all by me