Game black box

broken image
broken image

Two or more balls standing near each other could merge the rays' routes. Ray that goes into the black box on the left or on the right side of a ball that stands by the box's side will be turned around immediately Ray that goes between two balls placed at the distance of one cell from each other will be turned around - deflected by 180 degrees Ray that goes one cell to the left or to the right of a ball will be deflected by 90 degrees out of the ball Ray that hits a ball will be absorbed (it will not come outside the box) Ray that doesn't come across with any ball will go straight through the box You have to determine the location of all balls in the black box relying on the results of emitting of the rays.įollowing are the rules of the rays and balls interaction inside the black box:

broken image
broken image

Rays interact with balls inside the black box according to several rules. You can emit ray into the black box from its sides. Some of those cells can contain a ball but you cannot see them. Black box is a square box that contains cells.