Difference between revisions of "Chess Game Example"

From WeizmannWiki
Jump to: navigation, search
Line 1: Line 1:
This is a protected page for the Chess Game Example.  
+
This is a protected page for the Chess Game Example.
  
<br>  
+
<br>
  
 
== Chess Game Example<br>  ==
 
== Chess Game Example<br>  ==
  
&nbsp; The ChessGameExample is the chess game which can be played between two user, the black and white.The chess game is implemented with some of the rules and restictions of the original chess game.  
+
&nbsp; The ChessGameExample is the chess game which can be played between two user, the black and white.The chess game is implemented with some of the rules and restictions of the original chess game.
  
 
== Game Board  ==
 
== Game Board  ==
  
[[Image:ChessScreenShot.png]]  
+
[[Image:ChessScreenShot.png]]
  
<br>  
+
<br>
  
 
== Example 1 - LSC for the game  ==
 
== Example 1 - LSC for the game  ==
  
<br><br>  
+
<br><br>
  
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
{| width="100%" border="1" align="left" cellpadding="1" cellspacing="1"
 
|-
 
|-
! scope="col" width="15%" | Name  
+
! scope="col" width="15%" | Name
! scope="col" width="70%" | Description  
+
! scope="col" width="70%" | Description
 
! scope="col" width="15%" | LSC
 
! scope="col" width="15%" | LSC
 
|-
 
|-
| Square PieceClick  
+
| Square PieceClick
| When the user click any square Sq1, and then click any square Sq2, if the board next turn is equals to the Sq1 piece type then the square Sq1 check_Move square Sq2.&nbsp;  
+
| When the user click any square Sq1, and then click any square Sq2, if the board next turn is equals to the Sq1 piece type then the square Sq1 check_Move square Sq2.&nbsp;
|  
+
|
[[Image:PieceClick.png|thumb|left|LSC]]  
+
[[Image:PieceClick.png|thumb|left|LSC]]
  
 
|-
 
|-
| Square MovePiece  
+
| Square MovePiece
| When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible, &nbsp;if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.  
+
| When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible, &nbsp;if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.
 
| [[Image:MovePiece.png|thumb|left|LSC]]
 
| [[Image:MovePiece.png|thumb|left|LSC]]
 
|-
 
|-
| Square RemovePiece  
+
| Square RemovePiece
| When&nbsp;the square Sq1 move_Piece to square Sq2, &nbsp;then the square Sq2 emptyPiece the square Sq2.  
+
| When&nbsp;the square Sq1 move_Piece to square Sq2, &nbsp;then the square Sq2 emptyPiece the square Sq2.
 
| [[Image:RemovePiece.png|thumb|left|LSC]]
 
| [[Image:RemovePiece.png|thumb|left|LSC]]
| Square MovePiece
+
|-
| When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible, &nbsp;if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.  
+
| Square NextMove
| [[Image:MovePiece.png|thumb|left|LSC]]
+
| When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible, &nbsp;if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.
 +
| [[Image:NextMove.png|thumb|left|LSC]]
 
|-
 
|-
 
|}
 
|}

Revision as of 10:12, 27 February 2013

This is a protected page for the Chess Game Example.


Chess Game Example

  The ChessGameExample is the chess game which can be played between two user, the black and white.The chess game is implemented with some of the rules and restictions of the original chess game.

Game Board

ChessScreenShot.png


Example 1 - LSC for the game



Name Description LSC
Square PieceClick When the user click any square Sq1, and then click any square Sq2, if the board next turn is equals to the Sq1 piece type then the square Sq1 check_Move square Sq2. 
LSC
Square MovePiece When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible,  if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.
LSC
Square RemovePiece When the square Sq1 move_Piece to square Sq2,  then the square Sq2 emptyPiece the square Sq2.
LSC
Square NextMove When the square Sq1 check_Move square Sq2, canmove is assigned whether the movement of piece from square Sq1 to Sq2 is possible,  if the piece canmove and Sq1 piecetype is not equals to Sq2 piecetype then the square Sq1 move_Piece to square Sq2.
LSC