Professional Documents
Culture Documents
ITEA-PMP v.0.7
ITEA-PMP v.0.7
SUT-CE-40636-901-PMP :
0.7 :
23 : 24:1
)1
/
1.8
24:1/19/23
0.7
)2
...
0.7
)3
.
.
.
)4
24:1/19/23 .
)5
.
)6
0.7
-
.
.
.
IT
.
.
)7
:
.2
.3
.4
.5
.6
:
0.7
.2
.3
.4
.5
.6
.7
)8
:
.
.
)9
:
.
.
.
.
System Architect
.
.
.
. -
.
0.7
.
.
0.7
interface exception .
STDID.zip ( . STDID -
).
zip .
zip ir .
:
http://ce.sharif.edu/~shaikhha/java901
( 22:5:) 2 249:
.
2 4 %2
2 35 %31 35
36 3 %2
36 59 %61
. 59 .
.
.
1
-3 .
!
package
0.7
...
.
.
-
.
.
. .
( ) ...
( ) ( .
).
:
o %61
o %36
o %21
o %26 2
javaTA901@GMail.com
.
!
)11
http://en.wikipedia.org/wiki/Chess .
ir.sharif.ce.javaclass.chess.
.
)11
ir.sharif.ce.javaclass.chess.ui ( .
!)
.
. JFrame
(. Applet
).
.
.
.
0.7
(
) .
.
)12
(
) interface
) (implement.
{ public interface IPlayer
;)public String move(Chess chess
}
move .
. A3->A5
A2 A4 .
Chess
( .
move move
).
)13
ir.sharif.ce.javaclass.chess.pieces
abstract Piece
3 abstract . :
).
:draw .
:canMoveTo
( .
- 3 4)
)14
3
()
0.7
Castling
4
:Promotion -
.
Piece . toString
override XY Y .
( W
B ) X
( : PB
NW ).
ir.sharif.ce.javaclass.chess.exceptions.
ChessException Exception.
( .
3
6 3
) :
(
).
( !)
(!)
ChessException.
)15
Chess
:
0.7
10
5
6
Exception
JOptionPane .
Constructor .
constructor
.
Constructor
ai2 ai1
.
.
nextMove move
.
ChessException
Exception for X X
.
Exception
for W
Exception for B.
getTurn .
B
W .
)16
0.7
getPieceIn place
.
toString
E . place
. palce
F6 5 .F
IllegalArgumentException .
11
Package
Class / Interface
ir.sharif.ce.javaclass.chess
Chess
IPlayer
ir.sharif.ce.javaclass.chess.ui
ir.sharif.ce.javaclass.chess.pieces
Piece
6 more
ir.sharif.ce.javaclass.chess.exceptions
ChessException
6 more
3
.
.
0.7
12