/// <summary> /// 合法手レベル1 /// </summary> /// <returns></returns> public static SySet <SyElement> Create_02Kyo(Playerside pside, SyElement masu_ji) { SySet_Default <SyElement> dst = new SySet_Default <SyElement>("香の移動先"); if (Okiba.ShogiBan == Util_Masu.Masu_ToOkiba(masu_ji)) { dst.AddSupersets(KomanoKidou.DstKantu_上(pside, masu_ji)); } else if ((Okiba.Sente_Komadai | Okiba.Gote_Komadai).HasFlag( Util_Masu.Masu_ToOkiba(masu_ji))) { dst.AddSupersets(KomanoKidou.Dst_歩打面(pside));//香も同じ } return(dst); }
/// <summary> /// 合法手レベル1 /// </summary> /// <returns></returns> public static SySet <SyElement> Create_07Hisya(Playerside pside, SyElement masu_ji) { SySet_Default <SyElement> dst = new SySet_Default <SyElement>("飛車の移動先"); if (Okiba.ShogiBan == Conv_SyElement.ToOkiba(masu_ji)) { dst.AddSupersets(KomanoKidou.DstKantu_上(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_射(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_引(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_滑(pside, masu_ji)); } else if ((Okiba.Sente_Komadai | Okiba.Gote_Komadai).HasFlag( Conv_SyElement.ToOkiba(masu_ji))) { dst.AddSupersets(KomanoKidou.Dst_全打面(pside)); } return(dst); }
/// <summary> /// 合法手レベル1 /// </summary> /// <returns></returns> public static SySet <SyElement> Create_09Ryu(Playerside pside, SyElement masu_ji) { SySet_Default <SyElement> dst = new SySet_Default <SyElement>("竜の移動先"); if (Okiba.ShogiBan == Util_Masu.Masu_ToOkiba(masu_ji)) { dst.AddSupersets(KomanoKidou.DstKantu_上(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstIppo_昇(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_射(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstIppo_沈(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_引(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstIppo_降(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstKantu_滑(pside, masu_ji)); dst.AddSupersets(KomanoKidou.DstIppo_浮(pside, masu_ji)); } else if ((Okiba.Sente_Komadai | Okiba.Gote_Komadai).HasFlag( Util_Masu.Masu_ToOkiba(masu_ji))) { dst.AddSupersets(KomanoKidou.Dst_全打面(pside)); } return(dst); }