logo Sign In

Post #90677

Author
ricarleite
Parent topic
The DanielB Prisoners and Lightbulbs Thread
Link to post in topic
https://originaltrilogy.com/post/id/90677/action/topic#90677
Date created
29-Jan-2005, 10:38 AM
Quote

Originally posted by: Warbler
Quote

Originally posted by: DanielB
Here are the full rules for each phase:

Phase 1:

For days 1 to n-1 of an n day cycle:
1. If the light is off and you have one token then remove it and leave the light off.
2. If the light is off and you have zero tokens then turn the light on and add to your count DayNumber - n. Turn the light on. If this was the first cycle then you are now the counter.
3. If the light is off and you are the counter then turn it on. Add Daynumber - n to your count.



this, to me makes no sense. Lets say that the 1st cycle is 20 days. Lets also say on day 10 someone goes into the room for the 2nd time and the light is off. According to your directions, that person is supposed to add to their count(which I guess starts out at zero, you don't indicate where the count starts at), the daynumber(which is 10)-n(which is 20).
0+(10-20)= -10????????????


Starts out at one.

Yeah I think you got a point, isn't it N - daynumber?