Apr-17-2017, 11:08 AM
Hello everyone.
i am a soldier and in my unit our job is to guard around the base 24/7.
now we have a hugh problem which its falling on one man to make a list that contain who guards where because there is 2 guarding towers and that specific man always make a list of who guards where and when because you have a minimum distance between one guard to job to another.
now what i am trying to make is a program which do it automatic.
i need your help to show me the way and bright my eyes on how to do it.
now there is a few condition for that program about the guards :
1)the distance btw a guard watch to the next guard watch needs to be around (amount of people * 3) of course its + -
the time of guard watch is 3 hours so thats way * 3.
2)if a guy did a night watch which there is 4 every day 2 at each guard watch, means that tomorrow he wont do a night watch and will doo one at the day or evening,means the program have to calculate who did last night a night watch and give him a hour not in the night.
the guard times are:(00:00-03:00,03:00-06:00,06:00-09:00,09:00-12,12-15,15-18,18-21,21-00.....)
now a friend told me to try doing it with recursive but didnt figured out how.
thank you for your help:)
i am a soldier and in my unit our job is to guard around the base 24/7.
now we have a hugh problem which its falling on one man to make a list that contain who guards where because there is 2 guarding towers and that specific man always make a list of who guards where and when because you have a minimum distance between one guard to job to another.
now what i am trying to make is a program which do it automatic.
i need your help to show me the way and bright my eyes on how to do it.
now there is a few condition for that program about the guards :
1)the distance btw a guard watch to the next guard watch needs to be around (amount of people * 3) of course its + -
the time of guard watch is 3 hours so thats way * 3.
2)if a guy did a night watch which there is 4 every day 2 at each guard watch, means that tomorrow he wont do a night watch and will doo one at the day or evening,means the program have to calculate who did last night a night watch and give him a hour not in the night.
the guard times are:(00:00-03:00,03:00-06:00,06:00-09:00,09:00-12,12-15,15-18,18-21,21-00.....)
now a friend told me to try doing it with recursive but didnt figured out how.
thank you for your help:)