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

namespace NurseRosterProb
{
    class Class_MainTab
    {
        public string[,] Function_MainTab(string[,] MainTab, int RNurse)
        {         
            
            //string[,] MainTab_Param = new string[11, 15];
            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, 4] = "O";
            MainTab[RNurse + 2, 5] = "N"; MainTab[RNurse + 2, 6] = "N";
            MainTab[RNurse + 2, 7] = "N"; MainTab[RNurse + 2, 8] = "N";
            MainTab[RNurse + 2, 9] = "O"; MainTab[RNurse + 2, 10] = "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, 8] = "O";
            MainTab[RNurse + 4, 9] = "N"; MainTab[RNurse + 4, 10] = "N";
            MainTab[RNurse + 4, 11] = "N"; MainTab[RNurse + 4, 12] = "N";
            MainTab[RNurse + 4, 13] = "O"; MainTab[RNurse + 4, 14] = "O";

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

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

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

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


            /*
            if (RNurse == 0)
            {
                MainTab[RNurse + 8, 1] = "O"; MainTab[RNurse + 8, 2] = "O";
                MainTab[RNurse + 9, 1] = "O"; MainTab[RNurse + 9, 2] = "O";
                MainTab[RNurse + 10, 1] = "O"; MainTab[RNurse + 10, 2] = "O";
            }
            else
                if (RNurse == 1)
                {
                    MainTab[RNurse - 1, 1] = "O"; MainTab[RNurse - 1, 2] = "O";
                    MainTab[RNurse + 8, 1] = "O"; MainTab[RNurse + 8, 2] = "O";
                    MainTab[RNurse + 9, 1] = "O"; MainTab[RNurse + 9, 2] = "O";
                }
                else
                    if (RNurse == 2)
                    {
                        MainTab[RNurse - 1, 1] = "O"; MainTab[RNurse - 1, 2] = "O";
                        MainTab[RNurse - 2, 1] = "O"; MainTab[RNurse - 2, 2] = "O";
                        MainTab[RNurse + 8, 1] = "O"; MainTab[RNurse + 8, 2] = "O";
                    }
                    else
                        if (RNurse == 3)
                        {
                            MainTab[RNurse - 1, 1] = "O"; MainTab[RNurse - 1, 2] = "O";
                            MainTab[RNurse - 2, 1] = "O"; MainTab[RNurse - 2, 2] = "O";
                            MainTab[RNurse - 3, 1] = "O"; MainTab[RNurse - 3, 2] = "O";
                        }

            */
            return MainTab;
        }
    }
}
