Exemple #1
0
        public static New_Basho Query_Basho(ulong bitfield)
        {
            New_Basho basho;

            if (Masu_Honshogi.bitfieldBashoDictionary.ContainsKey(bitfield))
            {
                basho = Masu_Honshogi.bitfieldBashoDictionary[bitfield];
            }
            else
            {
                string word = $"升{BashoImpl.ToMasuNumber(bitfield)}";
                basho = new BashoImpl(bitfield);//TODO:唯一の新規生成にしたい。
                Masu_Honshogi.bitfieldBashoDictionary.Add(bitfield, basho);
                Conv_Sy.Put_BitfieldWord(bitfield, word);
            }

            return(basho);
        }
Exemple #2
0
        public static New_Basho Query_Basho(int masuNumber)
        {
            ulong bitfield = BashoImpl.ToBitfield(masuNumber);

            return(Masu_Honshogi.Query_Basho(bitfield));
        }