C#


100 Prisoners

There are 100 boxes in a room, each box contains a random number, there are 100 Prisoners, each prisoner needs to go into the room and find their own number (prisoner 1 needs to find a box contain ing the number one inside), each prisioner has up to 50 boxes they can open, if any one of the prisoners cannot find their number within 50 boxes, all 100 prisoners will die.

A picture of a computer terminal showing the output of a program that says either
                'All prisoners died' or 'All prisoners Lived! followed by a 'New Round' text in a cycle
Go to Project

Project01

This is my first C# program, learning the basics of adding, subtracting, dividing, casting, statements, and more.

A picture of a computer terminal showing the output of a program
Go to Project

  • Return