using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NurseRosterProb
{
    class Cls_Surgery
    {
        public string[,] Function_MainTab(string[,] MainTab, int RNurse)
        {            
            MainTab[RNurse, 1] = "N"; MainTab[RNurse, 2] = "N"; MainTab[RNurse, 3] = "N";
            MainTab[RNurse, 4] = "N"; MainTab[RNurse, 5] = "O"; MainTab[RNurse, 6] = "O";
            
            MainTab[RNurse + 1, 1] = "N"; MainTab[RNurse + 1, 2] = "N"; MainTab[RNurse + 1, 3] = "N";
            MainTab[RNurse + 1, 4] = "N"; MainTab[RNurse + 1, 5] = "O"; MainTab[RNurse + 1, 6] = "O";
            
            MainTab[RNurse + 2, 1] = "N"; MainTab[RNurse + 2, 2] = "N"; MainTab[RNurse + 2, 3] = "N";
            MainTab[RNurse + 2, 4] = "N"; MainTab[RNurse + 2, 5] = "O"; MainTab[RNurse + 2, 6] = "O";

            MainTab[RNurse + 3, 4] = "O"; MainTab[RNurse + 3, 5] = "N"; MainTab[RNurse + 3, 6] = "N";
            MainTab[RNurse + 3, 7] = "N"; MainTab[RNurse + 3, 8] = "N"; MainTab[RNurse + 3, 9] = "O";
            MainTab[RNurse + 3, 10] = "O";

            MainTab[RNurse + 4, 4] = "O"; MainTab[RNurse + 4, 5] = "N"; MainTab[RNurse + 4, 6] = "N";
            MainTab[RNurse + 4, 7] = "N"; MainTab[RNurse + 4, 8] = "N"; MainTab[RNurse + 4, 9] = "O";
            MainTab[RNurse + 4, 10] = "O";

            MainTab[RNurse + 5, 4] = "O"; MainTab[RNurse + 5, 5] = "N"; MainTab[RNurse + 5, 6] = "N";
            MainTab[RNurse + 5, 7] = "N"; MainTab[RNurse + 5, 8] = "N"; MainTab[RNurse + 5, 9] = "O";
            MainTab[RNurse + 5, 10] = "O";

            MainTab[RNurse + 6, 3] = "O"; MainTab[RNurse + 6, 8] = "O";
            MainTab[RNurse + 6, 9] = "N"; MainTab[RNurse + 6, 10] = "N"; MainTab[RNurse + 6, 11] = "N";
            MainTab[RNurse + 6, 12] = "N"; MainTab[RNurse + 6, 13] = "O"; MainTab[RNurse + 6, 14] = "O";

            MainTab[RNurse + 7, 3] = "O"; MainTab[RNurse + 7, 8] = "O";
            MainTab[RNurse + 7, 9] = "N"; MainTab[RNurse + 7, 10] = "N"; MainTab[RNurse + 7, 11] = "N";
            MainTab[RNurse + 7, 12] = "N"; MainTab[RNurse + 7, 13] = "O"; MainTab[RNurse + 7, 14] = "O";

            MainTab[RNurse + 8, 3] = "O"; MainTab[RNurse + 8, 8] = "O";
            MainTab[RNurse + 8, 9] = "N"; MainTab[RNurse + 8, 10] = "N"; MainTab[RNurse + 8, 11] = "N";
            MainTab[RNurse + 8, 12] = "N"; MainTab[RNurse + 8, 13] = "O"; MainTab[RNurse + 8, 14] = "O";

            
            MainTab[RNurse + 9, 7] = "O"; MainTab[RNurse + 9, 12] = "O";
            MainTab[RNurse + 9, 13] = "N"; MainTab[RNurse + 9, 14] = "N";

            MainTab[RNurse + 10, 7] = "O"; MainTab[RNurse + 10, 12] = "O";
            MainTab[RNurse + 10, 13] = "N"; MainTab[RNurse + 10, 14] = "N";

            MainTab[RNurse + 11, 7] = "O"; MainTab[RNurse + 11, 12] = "O";
            MainTab[RNurse + 11, 13] = "N"; MainTab[RNurse + 11, 14] = "N";

            MainTab[RNurse + 11, 1] = "O"; MainTab[RNurse + 11, 2] = "O";
            MainTab[RNurse + 12, 1] = "O"; MainTab[RNurse + 12, 2] = "O";
            MainTab[RNurse + 13, 1] = "O"; MainTab[RNurse + 13, 2] = "O";
            MainTab[RNurse + 14, 1] = "O"; MainTab[RNurse + 14, 2] = "O";
            MainTab[RNurse + 15, 1] = "O"; MainTab[RNurse + 15, 2] = "O";
            MainTab[RNurse + 16, 1] = "O"; MainTab[RNurse + 16, 2] = "O";
            MainTab[RNurse + 17, 1] = "O"; MainTab[RNurse + 17, 2] = "O";

            return MainTab;
        }
    }
}
