public ISfenPosition1 ToKyokumen1() { ISfenPosition1 ro_Kyokumen1 = new SfenPosition1Impl(); for (int suji = 1; suji < 10; suji++) { for (int dan = 1; dan < 10; dan++) { ro_Kyokumen1.Ban[suji][dan] = this.GetKomaAs(suji, dan); } } ro_Kyokumen1.MotiP1[0] = this.Moti1R; ro_Kyokumen1.MotiP1[1] = this.Moti1B; ro_Kyokumen1.MotiP1[2] = this.Moti1G; ro_Kyokumen1.MotiP1[3] = this.Moti1S; ro_Kyokumen1.MotiP1[4] = this.Moti1N; ro_Kyokumen1.MotiP1[5] = this.Moti1L; ro_Kyokumen1.MotiP1[6] = this.Moti1P; ro_Kyokumen1.MotiP2[0] = this.Moti2r; ro_Kyokumen1.MotiP2[1] = this.Moti2b; ro_Kyokumen1.MotiP2[2] = this.Moti2g; ro_Kyokumen1.MotiP2[3] = this.Moti2s; ro_Kyokumen1.MotiP2[4] = this.Moti2n; ro_Kyokumen1.MotiP2[5] = this.Moti2l; ro_Kyokumen1.MotiP2[6] = this.Moti2p; return(ro_Kyokumen1); }
public ISfenPosition1 ToKyokumen1() { ISfenPosition1 ro_Kyokumen1 = new SfenPosition1Impl(); for (int suji = 1; suji < 10; suji++) { for (int dan = 1; dan < 10; dan++) { ro_Kyokumen1.Ban[suji, dan] = this.GetKomaAs(suji, dan); } } int player; player = 1; ro_Kyokumen1.Moti[player, 0] = this.Moti1R; ro_Kyokumen1.Moti[player, 1] = this.Moti1B; ro_Kyokumen1.Moti[player, 2] = this.Moti1G; ro_Kyokumen1.Moti[player, 3] = this.Moti1S; ro_Kyokumen1.Moti[player, 4] = this.Moti1N; ro_Kyokumen1.Moti[player, 5] = this.Moti1L; ro_Kyokumen1.Moti[player, 6] = this.Moti1P; player = 2; ro_Kyokumen1.Moti[player, 0] = this.Moti2r; ro_Kyokumen1.Moti[player, 1] = this.Moti2b; ro_Kyokumen1.Moti[player, 2] = this.Moti2g; ro_Kyokumen1.Moti[player, 3] = this.Moti2s; ro_Kyokumen1.Moti[player, 4] = this.Moti2n; ro_Kyokumen1.Moti[player, 5] = this.Moti2l; ro_Kyokumen1.Moti[player, 6] = this.Moti2p; return(ro_Kyokumen1); }