Bigger Reactors

Bigger Reactors

17M Downloads

Reactor with one rod only radiating from the bottom

arnoudvanderleer opened this issue ยท 0 comments

commented

currentRod++;
if (currentRod >= controlRods.length) {
currentRod = 0;
rodOffset++;
}
int yLevel = currentRod % y;
int currentRod = this.currentRod + rodOffset;
currentRod %= controlRods.length;

yLevel does not use the offset and only uses the currentRod, which means that only the first controlRods.length y-levels can be the source of radiation; if you have 3 rods and the reactor has a height of 2, that means that two thirds of the time, radiation originates from the first level.