• R/O
  • SSH
  • HTTPS

shoginextmove: コミット


コミットメタ情報

リビジョン71 (tree)
日時2016-02-21 18:53:18
作者bellyoshi

ログメッセージ

変更サマリ

差分

--- Quantum/QuantumShogi/QuantumShogi.Logic/Piece.cs (revision 70)
+++ Quantum/QuantumShogi/QuantumShogi.Logic/Piece.cs (revision 71)
@@ -17,8 +17,10 @@
1717 {
1818 return _isTypeOf[pieceType];
1919 }
20+
21+ ///なりごま
22+ public bool IsPromoted { get; set; } = false;
2023
21- const int Promoted = 0; //なりごま
2224 const int Pawn = 1;// 歩
2325 const int Lance = 2;// 香車
2426 const int Knight = 3;// 桂馬
@@ -27,10 +29,22 @@
2729 const int Bishop = 6;// 角
2830 const int Rook = 7;// 飛
2931 const int King = 8;// 王
30- const int Black = 9;// 現在先手の駒
31- const int White = 10;// 現在後手の駒
32- //const long Wall = Black | White;//壁
3332
33+ // 現在先手の駒
34+ public bool IsBlack { get; set; }
35+ // 現在後手の駒
36+ public bool IsWhite { get; set; }
37+ //壁
38+ public bool IsWall {
39+ get {
40+ return IsBlack && IsWhite;
41+ }
42+ set {
43+ /// IsBlack = true;
44+ /// IsWhite = true;
45+ }
46+ }
47+
3448 public static int MaxOfType()
3549 {
3650 return King;
@@ -49,6 +63,16 @@
4963 _isTypeOf[Black] = false;
5064 _isTypeOf[White] = false;
5165 _isTypeOf[color] = true;
66+ IsEmtpy = false;
5267 }
68+
69+ public Piece GetEmpty()
70+ {
71+ return Piece()
72+ }
73+
74+
75+ public bool IsEmtpy { get; set; }
76+
5377 }
5478 }
--- Quantum/QuantumShogi/QuantumShogi.Logic/Board.cs (revision 70)
+++ Quantum/QuantumShogi/QuantumShogi.Logic/Board.cs (revision 71)
@@ -7,8 +7,8 @@
77 {
88 class Board
99 {
10- const int SIZE_OF_X = 9;
11- const int SIZE_OF_Y = 9;
10+ const int SIZE_OF_X = 9 + 2;
11+ const int SIZE_OF_Y = 9 + 2;
1212 private Piece[] _cells;
1313 public Piece GetCells(int x,int y)
1414 {
旧リポジトリブラウザで表示