Develop and Download Open Source Software

Browse Subversion Repository

Diff of /Quantum/QuantumShogi/QuantumShogi.Logic/MoveDirection.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 81 by bellyoshi, Wed Feb 24 02:47:30 2016 UTC revision 82 by bellyoshi, Thu Feb 25 07:13:43 2016 UTC
# Line 33  namespace QuantumShogi.Logic Line 33  namespace QuantumShogi.Logic
33              this.IsLine = isLine;              this.IsLine = isLine;
34          }          }
35    
         MoveDirection upper = new MoveDirection(0, -1, false);//前進  
         MoveDirection upperLeft = new MoveDirection(1, -1, false);//左上  
         MoveDirection upperRight = new MoveDirection(-1, -1, true);//右上  
         MoveDirection down = new MoveDirection(0, 1, false);//下がる  
         MoveDirection downLeft = new MoveDirection(1, 1, false);  
         MoveDirection downRight = new MoveDirection(-1, 1, false);  
         MoveDirection right = new MoveDirection(-1, 0, false);  
         MoveDirection left = new MoveDirection(1, 0, false);  
36    
         //飛びききにはすぐ1歩動く方向は含めない。  
         //例えば香車は直進すると定義されるが、直進+一歩前進と重複して定義する。  
         MoveDirection straightUpper = new MoveDirection(0, -1, true);//前へ直進  
         MoveDirection straightUpperLeft = new MoveDirection(1, -1, false);  
         MoveDirection straightUpperRight = new MoveDirection(-1, -1, true);  
         MoveDirection straightDown = new MoveDirection(0, 1, false);  
         MoveDirection straightDownLeft = new MoveDirection(1, 1, false);  
         MoveDirection straightDownRight = new MoveDirection(-1, 1, false);  
         MoveDirection straightRight = new MoveDirection(-1, 0, false);  
         MoveDirection straightLeft = new MoveDirection(1, 0, false);  
   
         MoveDirection upper2Left = new MoveDirection(1, -2, false);//桂馬飛び  
         MoveDirection upper2Right = new MoveDirection(-1, -2, true);//桂馬飛び  
37      }      }
38  }  }

Legend:
Removed from v.81  
changed lines
  Added in v.82

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26