before big code modification (moving player color in Board)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
All Classes
|
||||
</TITLE>
|
||||
@ -22,6 +22,8 @@ All Classes
|
||||
<TR>
|
||||
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="suicideChess/Board.html" title="class in suicideChess" target="classFrame">Board</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/ComputerPlayer.html" title="class in suicideChess" target="classFrame">ComputerPlayer</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/Move.html" title="class in suicideChess" target="classFrame">Move</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/Piece.html" title="class in suicideChess" target="classFrame">Piece</A>
|
||||
@ -32,6 +34,8 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="suicideChess/SuicideChess.html" title="class in suicideChess" target="classFrame">SuicideChess</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/XBoardProtocol.html" title="class in suicideChess" target="classFrame">XBoardProtocol</A>
|
||||
<BR>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
All Classes
|
||||
</TITLE>
|
||||
@ -22,6 +22,8 @@ All Classes
|
||||
<TR>
|
||||
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/ComputerPlayer.html" title="class in suicideChess">ComputerPlayer</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
@ -32,6 +34,8 @@ All Classes
|
||||
<BR>
|
||||
<A HREF="suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A>
|
||||
<BR>
|
||||
<A HREF="suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A>
|
||||
<BR>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:49 GMT 2006 -->
|
||||
<TITLE>
|
||||
Constant Field Values
|
||||
</TITLE>
|
||||
@ -332,12 +332,24 @@ suicideChess.*</FONT></TH>
|
||||
<TH ALIGN="left" COLSPAN="3">suicideChess.<A HREF="suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.SuicideChess.ASCII_GAME"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final boolean</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/SuicideChess.html#ASCII_GAME">ASCII_GAME</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>false</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.SuicideChess.BITBOARD_REMOVEPIECE_CHECK_REMOVE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final boolean</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/SuicideChess.html#BITBOARD_REMOVEPIECE_CHECK_REMOVE">BITBOARD_REMOVEPIECE_CHECK_REMOVE</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>true</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.SuicideChess.NAME"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final java.lang.String</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/SuicideChess.html#NAME">NAME</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>"djib\'s SuicideChess v0.1.9"</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.SuicideChess.SQUARE_CHECK_INVALID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final boolean</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/SuicideChess.html#SQUARE_CHECK_INVALID">SQUARE_CHECK_INVALID</A></CODE></TD>
|
||||
@ -349,6 +361,78 @@ suicideChess.*</FONT></TH>
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="3">suicideChess.<A HREF="suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.INVALID"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#INVALID">INVALID</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>6</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.MOVE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#MOVE">MOVE</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>5</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.NEW"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#NEW">NEW</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>3</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.NOPROTOVER"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#NOPROTOVER">NOPROTOVER</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>2</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.NOT_ACCEPTED_SUICIDE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#NOT_ACCEPTED_SUICIDE">NOT_ACCEPTED_SUICIDE</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>10</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.NOT_ACCEPTED_USERMOVE"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#NOT_ACCEPTED_USERMOVE">NOT_ACCEPTED_USERMOVE</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>9</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.PROTOVER"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#PROTOVER">PROTOVER</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>1</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.QUIT"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#QUIT">QUIT</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>4</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.UNKNOWN"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#UNKNOWN">UNKNOWN</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>-1</CODE></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<A NAME="suicideChess.XBoardProtocol.XBOARD"><!-- --></A><TD ALIGN="right"><FONT SIZE="-1">
|
||||
<CODE>public static final int</CODE></FONT></TD>
|
||||
<TD ALIGN="left"><CODE><A HREF="suicideChess/XBoardProtocol.html#XBOARD">XBOARD</A></CODE></TD>
|
||||
<TD ALIGN="right"><CODE>0</CODE></TD>
|
||||
</TR>
|
||||
</FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
<HR>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
Deprecated List
|
||||
</TITLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:53 GMT 2006 -->
|
||||
<TITLE>
|
||||
API Help
|
||||
</TITLE>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
B-Index
|
||||
A-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ B-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="B-Index";
|
||||
parent.document.title="A-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,47 +73,14 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_B_"><!-- --></A><H2>
|
||||
<B>B</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_A_"><!-- --></A><H2>
|
||||
<B>A</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BISHOP"><B>BISHOP</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BISHOP_CHAR"><B>BISHOP_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/SuicideChess.html#BITBOARD_REMOVEPIECE_CHECK_REMOVE"><B>BITBOARD_REMOVEPIECE_CHECK_REMOVE</B></A> -
|
||||
<DT><A HREF="../suicideChess/SuicideChess.html#ASCII_GAME"><B>ASCII_GAME</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A>
|
||||
<DD>does BitBoard.class removePiece function checks if removing piece is legal ?
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK"><B>BLACK</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_BISHOP"><B>BLACK_BISHOP</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_KING"><B>BLACK_KING</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_KNIGHT"><B>BLACK_KNIGHT</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_PAWN"><B>BLACK_PAWN</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_PIECES"><B>BLACK_PIECES</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_QUEEN"><B>BLACK_QUEEN</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_ROOK"><B>BLACK_ROOK</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A> - Class in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD>This class contains the board representation.<DT><A HREF="../suicideChess/Board.html#Board()"><B>Board()</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>Constructor of the class Board
|
||||
<DT><A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A> - Exception in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD> </DL>
|
||||
<DD>Displays informations in the console.
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
|
||||
@ -166,7 +133,7 @@ Constructor for class suicideChess.<A HREF="../suicideChess/Board.html" title="c
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
D-Index
|
||||
B-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ D-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="D-Index";
|
||||
parent.document.title="B-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,21 +73,47 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_D_"><!-- --></A><H2>
|
||||
<B>D</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_B_"><!-- --></A><H2>
|
||||
<B>B</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Board.html#display()"><B>display()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function can be used to display the board
|
||||
Black pieces are displayed in uppercase letters.
|
||||
<DT><A HREF="../suicideChess/Move.html#display()"><B>display()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Displays a move in great details.
|
||||
<DT><A HREF="../suicideChess/Board.html#doMove(suicideChess.Move)"><B>doMove(Move)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This methods takes a <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A> and applies it (updating the bitboard)
|
||||
</DL>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BISHOP"><B>BISHOP</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BISHOP_CHAR"><B>BISHOP_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/SuicideChess.html#BITBOARD_REMOVEPIECE_CHECK_REMOVE"><B>BITBOARD_REMOVEPIECE_CHECK_REMOVE</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A>
|
||||
<DD>does BitBoard.class removePiece function checks if removing piece is legal ?
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK"><B>BLACK</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_BISHOP"><B>BLACK_BISHOP</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_KING"><B>BLACK_KING</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_KNIGHT"><B>BLACK_KNIGHT</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_PAWN"><B>BLACK_PAWN</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_PIECES"><B>BLACK_PIECES</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_QUEEN"><B>BLACK_QUEEN</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#BLACK_ROOK"><B>BLACK_ROOK</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A> - Class in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD>This class contains the board representation.<DT><A HREF="../suicideChess/Board.html#Board()"><B>Board()</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>Constructor of the class Board
|
||||
<DT><A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A> - Exception in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD> </DL>
|
||||
<HR>
|
||||
|
||||
|
||||
@ -140,7 +166,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class i
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
E-Index
|
||||
C-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ E-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="E-Index";
|
||||
parent.document.title="C-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,13 +73,13 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_E_"><!-- --></A><H2>
|
||||
<B>E</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_C_"><!-- --></A><H2>
|
||||
<B>C</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Move.html#enablesEnPassant()"><B>enablesEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying is a Move makes 'en passant' move possible.
|
||||
<DT><A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>ComputerPlayer</B></A> - Class in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD>This class will contain all the AI.<DT><A HREF="../suicideChess/ComputerPlayer.html#ComputerPlayer(int)"><B>ComputerPlayer(int)</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess">ComputerPlayer</A>
|
||||
<DD>This constructor creates a computer that plays with the given color
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -133,7 +133,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
F-Index
|
||||
D-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ F-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="F-Index";
|
||||
parent.document.title="D-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,13 +73,26 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_F_"><!-- --></A><H2>
|
||||
<B>F</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_D_"><!-- --></A><H2>
|
||||
<B>D</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Move.html#fromSquare()"><B>fromSquare()</B></A> -
|
||||
<DT><A HREF="../suicideChess/Board.html#display()"><B>display()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function can be used to display the board
|
||||
Black pieces are displayed in uppercase letters.
|
||||
<DT><A HREF="../suicideChess/Move.html#display()"><B>display()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from in a Move
|
||||
<DD>Displays a move in great details.
|
||||
<DT><A HREF="../suicideChess/Board.html#doMove(suicideChess.Move)"><B>doMove(Move)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This methods takes a <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A> and applies it (updating the bitboard)
|
||||
<DT><A HREF="../suicideChess/ComputerPlayer.html#doMove(suicideChess.Board)"><B>doMove(Board)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess">ComputerPlayer</A>
|
||||
<DD>This asks the computer to compute a move
|
||||
<DT><A HREF="../suicideChess/XBoardProtocol.html#doMove(suicideChess.Move)"><B>doMove(Move)</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A>
|
||||
<DD>Sends a move message to XBoard
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -133,7 +146,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
G-Index
|
||||
E-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ G-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="G-Index";
|
||||
parent.document.title="E-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,54 +73,13 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_G_"><!-- --></A><H2>
|
||||
<B>G</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_E_"><!-- --></A><H2>
|
||||
<B>E</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Move.html#getCapturedPiece()"><B>getCapturedPiece()</B></A> -
|
||||
<DT><A HREF="../suicideChess/Move.html#enablesEnPassant()"><B>enablesEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be captured in a Move
|
||||
<DT><A HREF="../suicideChess/Piece.html#getColor()"><B>getColor()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the color of the Piece.
|
||||
<DT><A HREF="../suicideChess/Board.html#getEnPassantSquare()"><B>getEnPassantSquare()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function is used to return the 'en passant' Square.
|
||||
<DT><A HREF="../suicideChess/Move.html#getEnPassantSquare()"><B>getEnPassantSquare()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the enPassant Square for a move.
|
||||
<DT><A HREF="../suicideChess/Square.html#getFile()"><B>getFile()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the file of a Square.
|
||||
<DT><A HREF="../suicideChess/Square.html#getFileNb()"><B>getFileNb()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the number of the File
|
||||
<DT><A HREF="../suicideChess/Rules.html#getLegalMovesCapture()"><B>getLegalMovesCapture()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>This function return the current status of the ArrayList<Move> of all legal <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A>
|
||||
with a capture.
|
||||
<DT><A HREF="../suicideChess/Rules.html#getLegalMovesNonCapture()"><B>getLegalMovesNonCapture()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>This function return the current status of the ArrayList<Move> of all legal <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A>
|
||||
without a capture.
|
||||
<DT><A HREF="../suicideChess/Move.html#getMovingPiece()"><B>getMovingPiece()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the moving <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move.
|
||||
<DT><A HREF="../suicideChess/Board.html#getPiece(suicideChess.Square)"><B>getPiece(Square)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function searchs for what piece is on a square.
|
||||
<DT><A HREF="../suicideChess/Piece.html#getPieceNumber()"><B>getPieceNumber()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the Piece (Piece.BLACK_PAWN or Piece.WHITE_QUEEN)
|
||||
<DT><A HREF="../suicideChess/Piece.html#getPieceType()"><B>getPieceType()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the Piece type (Piece.QUEEN or Piece.PAWN)
|
||||
<DT><A HREF="../suicideChess/Move.html#getPromotionPiece()"><B>getPromotionPiece()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the promotion <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move
|
||||
<DT><A HREF="../suicideChess/Square.html#getRank()"><B>getRank()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the number of the Rank
|
||||
<DD>Returns a boolean saying is a Move makes 'en passant' move possible.
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -174,7 +133,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
I-Index
|
||||
F-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ I-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="I-Index";
|
||||
parent.document.title="F-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,31 +73,13 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_I_"><!-- --></A><H2>
|
||||
<B>I</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_F_"><!-- --></A><H2>
|
||||
<B>F</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Move.html#isCaptureMove()"><B>isCaptureMove()</B></A> -
|
||||
<DT><A HREF="../suicideChess/Move.html#fromSquare()"><B>fromSquare()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying if a Move is a capture move
|
||||
<DT><A HREF="../suicideChess/Board.html#isEmpty(suicideChess.Square, suicideChess.Piece)"><B>isEmpty(Square, Piece)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function returns a boolean telling if a <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> is on a <A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><CODE>Board.NoPieceOnSquare</CODE></A>.
|
||||
<DT><A HREF="../suicideChess/Board.html#isEnPassant()"><B>isEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function returns a boolean saying if the board is in an 'en passant' state.
|
||||
<DT><A HREF="../suicideChess/Move.html#isEnPassant()"><B>isEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying is a Move is an 'en passant' move.
|
||||
<DT><A HREF="../suicideChess/Square.html#isEqual(suicideChess.Square)"><B>isEqual(Square)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns a boolean telling if two squares are the same
|
||||
<DT><A HREF="../suicideChess/Move.html#isPromotionMove()"><B>isPromotionMove()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying if a Move is a promotion or not.
|
||||
<DT><A HREF="../suicideChess/Move.html#isSimpleEqual(suicideChess.Move)"><B>isSimpleEqual(Move)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Tests the equality of two moves by just looking at the fromSquare and the toSquare
|
||||
<DD>Returns the <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A> to move from in a Move
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -151,7 +133,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
K-Index
|
||||
G-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ K-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="K-Index";
|
||||
parent.document.title="G-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,22 +73,57 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_K_"><!-- --></A><H2>
|
||||
<B>K</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_G_"><!-- --></A><H2>
|
||||
<B>G</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KING"><B>KING</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KING_CHAR"><B>KING_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KNIGHT"><B>KNIGHT</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KNIGHT_CHAR"><B>KNIGHT_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Move.html#getCapturedPiece()"><B>getCapturedPiece()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> to be captured in a Move
|
||||
<DT><A HREF="../suicideChess/Piece.html#getColor()"><B>getColor()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the color of the Piece.
|
||||
<DT><A HREF="../suicideChess/XBoardProtocol.html#getCommand(java.lang.String)"><B>getCommand(String)</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A>
|
||||
<DD>Interprets XBoard Commands
|
||||
<DT><A HREF="../suicideChess/Board.html#getEnPassantSquare()"><B>getEnPassantSquare()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function is used to return the 'en passant' Square.
|
||||
<DT><A HREF="../suicideChess/Move.html#getEnPassantSquare()"><B>getEnPassantSquare()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the enPassant Square for a move.
|
||||
<DT><A HREF="../suicideChess/Square.html#getFile()"><B>getFile()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the file of a Square.
|
||||
<DT><A HREF="../suicideChess/Square.html#getFileNb()"><B>getFileNb()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the number of the File
|
||||
<DT><A HREF="../suicideChess/Rules.html#getLegalMovesCapture()"><B>getLegalMovesCapture()</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>This function return the current status of the ArrayList<Move> of all legal <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A>
|
||||
with a capture.
|
||||
<DT><A HREF="../suicideChess/Rules.html#getLegalMovesNonCapture()"><B>getLegalMovesNonCapture()</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>This function return the current status of the ArrayList<Move> of all legal <A HREF="../suicideChess/Move.html" title="class in suicideChess"><CODE>Move</CODE></A>
|
||||
without a capture.
|
||||
<DT><A HREF="../suicideChess/Move.html#getMovingPiece()"><B>getMovingPiece()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the moving <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move.
|
||||
<DT><A HREF="../suicideChess/Board.html#getPiece(suicideChess.Square)"><B>getPiece(Square)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function searchs for what piece is on a square.
|
||||
<DT><A HREF="../suicideChess/Piece.html#getPieceNumber()"><B>getPieceNumber()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the Piece (Piece.BLACK_PAWN or Piece.WHITE_QUEEN)
|
||||
<DT><A HREF="../suicideChess/Piece.html#getPieceType()"><B>getPieceType()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>Returns an integer representing the Piece type (Piece.QUEEN or Piece.PAWN)
|
||||
<DT><A HREF="../suicideChess/Move.html#getPromotionPiece()"><B>getPromotionPiece()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns the promotion <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> of a Move
|
||||
<DT><A HREF="../suicideChess/Square.html#getRank()"><B>getRank()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns the number of the Rank
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -142,7 +177,7 @@ Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
L-Index
|
||||
I-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ L-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="L-Index";
|
||||
parent.document.title="I-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,18 +73,37 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_L_"><!-- --></A><H2>
|
||||
<B>L</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_I_"><!-- --></A><H2>
|
||||
<B>I</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/Rules.html#legalMovesForPlayer(suicideChess.Board, int)"><B>legalMovesForPlayer(Board, int)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>Computes the possible moves according to the current status of the <A HREF="../suicideChess/Board.html" title="class in suicideChess"><CODE>Board</CODE></A> and the
|
||||
color of the current player.
|
||||
<DT><A HREF="../suicideChess/Rules.html#legalMovesFromSquare(suicideChess.Square, suicideChess.Board)"><B>legalMovesFromSquare(Square, Board)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess">Rules</A>
|
||||
<DD>Computes the possible moves from a given <A HREF="../suicideChess/Square.html" title="class in suicideChess"><CODE>Square</CODE></A>
|
||||
according to the current status of the <A HREF="../suicideChess/Board.html" title="class in suicideChess"><CODE>Board</CODE></A>
|
||||
<DT><A HREF="../suicideChess/XBoardProtocol.html#initialise()"><B>initialise()</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A>
|
||||
<DD>This function initialises the communications with XBoard.
|
||||
<DT><A HREF="../suicideChess/XBoardProtocol.html#INVALID"><B>INVALID</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A>
|
||||
<DD>Received an invalid move
|
||||
<DT><A HREF="../suicideChess/Move.html#isCaptureMove()"><B>isCaptureMove()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying if a Move is a capture move
|
||||
<DT><A HREF="../suicideChess/Board.html#isEmpty(suicideChess.Square, suicideChess.Piece)"><B>isEmpty(Square, Piece)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function returns a boolean telling if a <A HREF="../suicideChess/Piece.html" title="class in suicideChess"><CODE>Piece</CODE></A> is on a <A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><CODE>Board.NoPieceOnSquare</CODE></A>.
|
||||
<DT><A HREF="../suicideChess/Board.html#isEnPassant()"><B>isEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess">Board</A>
|
||||
<DD>This function returns a boolean saying if the board is in an 'en passant' state.
|
||||
<DT><A HREF="../suicideChess/Move.html#isEnPassant()"><B>isEnPassant()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying is a Move is an 'en passant' move.
|
||||
<DT><A HREF="../suicideChess/Square.html#isEqual(suicideChess.Square)"><B>isEqual(Square)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess">Square</A>
|
||||
<DD>Returns a boolean telling if two squares are the same
|
||||
<DT><A HREF="../suicideChess/Move.html#isPromotionMove()"><B>isPromotionMove()</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Returns a boolean saying if a Move is a promotion or not.
|
||||
<DT><A HREF="../suicideChess/Move.html#isSimpleEqual(suicideChess.Move)"><B>isSimpleEqual(Move)</B></A> -
|
||||
Method in class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>Tests the equality of two moves by just looking at the fromSquare and the toSquare
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
@ -138,7 +157,7 @@ Method in class suicideChess.<A HREF="../suicideChess/Rules.html" title="class i
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,9 +2,9 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:52 GMT 2006 -->
|
||||
<TITLE>
|
||||
M-Index
|
||||
K-Index
|
||||
</TITLE>
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ M-Index
|
||||
<SCRIPT type="text/javascript">
|
||||
function windowTitle()
|
||||
{
|
||||
parent.document.title="M-Index";
|
||||
parent.document.title="K-Index";
|
||||
}
|
||||
</SCRIPT>
|
||||
<NOSCRIPT>
|
||||
@ -73,26 +73,23 @@ function windowTitle()
|
||||
<A NAME="skip-navbar_top"></A>
|
||||
<!-- ========= END OF TOP NAVBAR ========= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A NAME="_M_"><!-- --></A><H2>
|
||||
<B>M</B></H2>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
<A NAME="_K_"><!-- --></A><H2>
|
||||
<B>K</B></H2>
|
||||
<DL>
|
||||
<DT><A HREF="../suicideChess/SuicideChess.html#main(java.lang.String[])"><B>main(String[])</B></A> -
|
||||
Static method in class suicideChess.<A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A>
|
||||
<DD>The main function
|
||||
<DT><A HREF="../suicideChess/Piece.html#MAX_PIECE_NUMBER"><B>MAX_PIECE_NUMBER</B></A> -
|
||||
<DT><A HREF="../suicideChess/Piece.html#KING"><B>KING</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Move.html" title="class in suicideChess"><B>Move</B></A> - Class in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD>This class is used for moves representation.<DT><A HREF="../suicideChess/Move.html#Move(java.lang.String, suicideChess.Board)"><B>Move(String, Board)</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>This is the constructor of the class.
|
||||
<DT><A HREF="../suicideChess/Move.html#Move(suicideChess.Square, suicideChess.Square, suicideChess.Piece, suicideChess.Piece, suicideChess.Piece)"><B>Move(Square, Square, Piece, Piece, Piece)</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>This is the constructor of the class.
|
||||
<DT><A HREF="../suicideChess/Move.html#Move(suicideChess.Square, suicideChess.Square, suicideChess.Square, suicideChess.Piece, boolean)"><B>Move(Square, Square, Square, Piece, boolean)</B></A> -
|
||||
Constructor for class suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A>
|
||||
<DD>This is the constructor of the class.
|
||||
<DT><A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>Move.NotAValidMoveException</B></A> - Exception in <A HREF="../suicideChess/package-summary.html">suicideChess</A><DD> </DL>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KING_CHAR"><B>KING_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KNIGHT"><B>KNIGHT</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
<DT><A HREF="../suicideChess/Piece.html#KNIGHT_CHAR"><B>KNIGHT_CHAR</B></A> -
|
||||
Static variable in class suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess">Piece</A>
|
||||
<DD>
|
||||
</DL>
|
||||
<HR>
|
||||
|
||||
|
||||
@ -145,7 +142,7 @@ Constructor for class suicideChess.<A HREF="../suicideChess/Move.html" title="cl
|
||||
<A NAME="skip-navbar_bottom"></A>
|
||||
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||||
|
||||
<A HREF="index-1.html">B</A> <A HREF="index-2.html">D</A> <A HREF="index-3.html">E</A> <A HREF="index-4.html">F</A> <A HREF="index-5.html">G</A> <A HREF="index-6.html">I</A> <A HREF="index-7.html">K</A> <A HREF="index-8.html">L</A> <A HREF="index-9.html">M</A> <A HREF="index-10.html">N</A> <A HREF="index-11.html">P</A> <A HREF="index-12.html">Q</A> <A HREF="index-13.html">R</A> <A HREF="index-14.html">S</A> <A HREF="index-15.html">T</A> <A HREF="index-16.html">W</A> <HR>
|
||||
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">I</A> <A HREF="index-9.html">K</A> <A HREF="index-10.html">L</A> <A HREF="index-11.html">M</A> <A HREF="index-12.html">N</A> <A HREF="index-13.html">P</A> <A HREF="index-14.html">Q</A> <A HREF="index-15.html">R</A> <A HREF="index-16.html">S</A> <A HREF="index-17.html">T</A> <A HREF="index-18.html">U</A> <A HREF="index-19.html">W</A> <A HREF="index-20.html">X</A> <HR>
|
||||
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc on Fri Jan 13 17:00:38 GMT 2006-->
|
||||
<!-- Generated by javadoc on Tue Jan 17 15:42:52 GMT 2006-->
|
||||
<TITLE>
|
||||
Generated Documentation (Untitled)
|
||||
</TITLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Class Hierarchy
|
||||
</TITLE>
|
||||
@ -86,12 +86,12 @@ Class Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Object<UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Move.html" title="class in suicideChess"><B>Move</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Piece.html" title="class in suicideChess"><B>Piece</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Rules.html" title="class in suicideChess"><B>Rules</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Square.html" title="class in suicideChess"><B>Square</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/SuicideChess.html" title="class in suicideChess"><B>SuicideChess</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<LI TYPE="circle">suicideChess.<A HREF="suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>ComputerPlayer</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Move.html" title="class in suicideChess"><B>Move</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Piece.html" title="class in suicideChess"><B>Piece</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Rules.html" title="class in suicideChess"><B>Rules</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Square.html" title="class in suicideChess"><B>Square</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/SuicideChess.html" title="class in suicideChess"><B>SuicideChess</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Exception<UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>Move.NotAValidMoveException</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Rules.UnexpectedError.html" title="class in suicideChess"><B>Rules.UnexpectedError</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Square.NotAValidSquare.html" title="class in suicideChess"><B>Square.NotAValidSquare</B></A></UL>
|
||||
</UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>Move.NotAValidMoveException</B></A><LI TYPE="circle">suicideChess.<A HREF="suicideChess/Square.NotAValidSquare.html" title="class in suicideChess"><B>Square.NotAValidSquare</B></A></UL>
|
||||
</UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="suicideChess/XBoardProtocol.html" title="class in suicideChess"><B>XBoardProtocol</B></A></UL>
|
||||
</UL>
|
||||
<HR>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:49 GMT 2006 -->
|
||||
<TITLE>
|
||||
Serialized Form
|
||||
</TITLE>
|
||||
@ -115,20 +115,6 @@ Serialized Form</H1>
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
<A NAME="suicideChess.Rules.UnexpectedError"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||||
<B>Class <A HREF="suicideChess/Rules.UnexpectedError.html" title="class in suicideChess">suicideChess.Rules.UnexpectedError</A> extends java.lang.Exception implements Serializable</B></FONT></TH>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
<B>serialVersionUID: </B>7448113740797323379L
|
||||
|
||||
<P>
|
||||
|
||||
<P>
|
||||
<A NAME="suicideChess.Square.NotAValidSquare"><!-- --></A>
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:37 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:45 GMT 2006 -->
|
||||
<TITLE>
|
||||
Board.NoPieceOnSquare
|
||||
</TITLE>
|
||||
@ -52,7 +52,7 @@ function windowTitle()
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html?suicideChess/Board.NoPieceOnSquare.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="Board.NoPieceOnSquare.html" target="_top"><B>NO FRAMES</B></A>
|
||||
@ -171,7 +171,7 @@ java.lang.Object
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html?suicideChess/Board.NoPieceOnSquare.html" target="_top"><B>FRAMES</B></A>
|
||||
<A HREF="Board.NoPieceOnSquare.html" target="_top"><B>NO FRAMES</B></A>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:36 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:44 GMT 2006 -->
|
||||
<TITLE>
|
||||
Board
|
||||
</TITLE>
|
||||
@ -108,7 +108,7 @@ This class contains the board representation.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Version:</B></DT>
|
||||
<DD>$LastChangedRevision: 27 $, $LastChangedDate: 2006-01-13 16:48:21 +0000 (Fri, 13 Jan 2006) $</DD>
|
||||
<DD>$LastChangedRevision$, $LastChangedDate$</DD>
|
||||
<DT><B>Author:</B></DT>
|
||||
<DD>Jean-Baptiste Hétier</DD>
|
||||
</DL>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:37 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:47 GMT 2006 -->
|
||||
<TITLE>
|
||||
Move.NotAValidMoveException
|
||||
</TITLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:37 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:46 GMT 2006 -->
|
||||
<TITLE>
|
||||
Move
|
||||
</TITLE>
|
||||
@ -51,7 +51,7 @@ function windowTitle()
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html?suicideChess/Move.html" target="_top"><B>FRAMES</B></A>
|
||||
@ -103,7 +103,7 @@ This class is used for moves representation.
|
||||
<P>
|
||||
<DL>
|
||||
<DT><B>Version:</B></DT>
|
||||
<DD>$LastChangedRevision: 27 $, $LastChangedDate: 2006-01-13 16:48:21 +0000 (Fri, 13 Jan 2006) $</DD>
|
||||
<DD>$LastChangedRevision$, $LastChangedDate$</DD>
|
||||
<DT><B>Author:</B></DT>
|
||||
<DD>Jean-Baptiste Hétier</DD>
|
||||
</DL>
|
||||
@ -578,7 +578,7 @@ public void <B>display</B>()</PRE>
|
||||
|
||||
<TR>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>PREV CLASS</B></A>
|
||||
<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>NEXT CLASS</B></A></FONT></TD>
|
||||
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||||
<A HREF="../index.html?suicideChess/Move.html" target="_top"><B>FRAMES</B></A>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Uses of Class suicideChess.Board.NoPieceOnSquare
|
||||
</TITLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Uses of Class suicideChess.Board
|
||||
</TITLE>
|
||||
@ -94,7 +94,15 @@ Uses of <A HREF="../../suicideChess/Board.html" title="class in suicideChess">Bo
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> void</CODE></FONT></TD>
|
||||
<CODE> <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A></CODE></FONT></TD>
|
||||
<TD><CODE><B>ComputerPlayer.</B><B><A HREF="../../suicideChess/ComputerPlayer.html#doMove(suicideChess.Board)">doMove</A></B>(<A HREF="../../suicideChess/Board.html" title="class in suicideChess">Board</A> bitboard)</CODE>
|
||||
|
||||
<BR>
|
||||
This asks the computer to compute a move</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>static void</CODE></FONT></TD>
|
||||
<TD><CODE><B>Rules.</B><B><A HREF="../../suicideChess/Rules.html#legalMovesForPlayer(suicideChess.Board, int)">legalMovesForPlayer</A></B>(<A HREF="../../suicideChess/Board.html" title="class in suicideChess">Board</A> board,
|
||||
int color)</CODE>
|
||||
|
||||
@ -104,7 +112,7 @@ Uses of <A HREF="../../suicideChess/Board.html" title="class in suicideChess">Bo
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> void</CODE></FONT></TD>
|
||||
<CODE>static void</CODE></FONT></TD>
|
||||
<TD><CODE><B>Rules.</B><B><A HREF="../../suicideChess/Rules.html#legalMovesFromSquare(suicideChess.Square, suicideChess.Board)">legalMovesFromSquare</A></B>(<A HREF="../../suicideChess/Square.html" title="class in suicideChess">Square</A> fromSquare,
|
||||
<A HREF="../../suicideChess/Board.html" title="class in suicideChess">Board</A> board)</CODE>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Uses of Class suicideChess.Move.NotAValidMoveException
|
||||
</TITLE>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Uses of Class suicideChess.Move
|
||||
</TITLE>
|
||||
@ -88,13 +88,29 @@ Uses of <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Mov
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../suicideChess/package-summary.html">suicideChess</A> that return <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A></CODE></FONT></TD>
|
||||
<TD><CODE><B>ComputerPlayer.</B><B><A HREF="../../suicideChess/ComputerPlayer.html#doMove(suicideChess.Board)">doMove</A></B>(<A HREF="../../suicideChess/Board.html" title="class in suicideChess">Board</A> bitboard)</CODE>
|
||||
|
||||
<BR>
|
||||
This asks the computer to compute a move</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P>
|
||||
|
||||
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||||
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
|
||||
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../suicideChess/package-summary.html">suicideChess</A> that return types with arguments of type <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A></FONT></TH>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.util.ArrayList<<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A>></CODE></FONT></TD>
|
||||
<CODE>static java.util.ArrayList<<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A>></CODE></FONT></TD>
|
||||
<TD><CODE><B>Rules.</B><B><A HREF="../../suicideChess/Rules.html#getLegalMovesCapture()">getLegalMovesCapture</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
@ -103,7 +119,7 @@ Uses of <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Mov
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> java.util.ArrayList<<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A>></CODE></FONT></TD>
|
||||
<CODE>static java.util.ArrayList<<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A>></CODE></FONT></TD>
|
||||
<TD><CODE><B>Rules.</B><B><A HREF="../../suicideChess/Rules.html#getLegalMovesNonCapture()">getLegalMovesNonCapture</A></B>()</CODE>
|
||||
|
||||
<BR>
|
||||
@ -120,6 +136,14 @@ Uses of <A HREF="../../suicideChess/Move.html" title="class in suicideChess">Mov
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE>static void</CODE></FONT></TD>
|
||||
<TD><CODE><B>XBoardProtocol.</B><B><A HREF="../../suicideChess/XBoardProtocol.html#doMove(suicideChess.Move)">doMove</A></B>(<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A> move)</CODE>
|
||||
|
||||
<BR>
|
||||
Sends a move message to XBoard</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||||
<CODE> void</CODE></FONT></TD>
|
||||
<TD><CODE><B>Board.</B><B><A HREF="../../suicideChess/Board.html#doMove(suicideChess.Move)">doMove</A></B>(<A HREF="../../suicideChess/Move.html" title="class in suicideChess">Move</A> move)</CODE>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:37 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:48 GMT 2006 -->
|
||||
<TITLE>
|
||||
suicideChess
|
||||
</TITLE>
|
||||
@ -25,6 +25,8 @@ Classes</FONT>
|
||||
<BR>
|
||||
<A HREF="Board.html" title="class in suicideChess" target="classFrame">Board</A>
|
||||
<BR>
|
||||
<A HREF="ComputerPlayer.html" title="class in suicideChess" target="classFrame">ComputerPlayer</A>
|
||||
<BR>
|
||||
<A HREF="Move.html" title="class in suicideChess" target="classFrame">Move</A>
|
||||
<BR>
|
||||
<A HREF="Piece.html" title="class in suicideChess" target="classFrame">Piece</A>
|
||||
@ -33,7 +35,9 @@ Classes</FONT>
|
||||
<BR>
|
||||
<A HREF="Square.html" title="class in suicideChess" target="classFrame">Square</A>
|
||||
<BR>
|
||||
<A HREF="SuicideChess.html" title="class in suicideChess" target="classFrame">SuicideChess</A></FONT></TD>
|
||||
<A HREF="SuicideChess.html" title="class in suicideChess" target="classFrame">SuicideChess</A>
|
||||
<BR>
|
||||
<A HREF="XBoardProtocol.html" title="class in suicideChess" target="classFrame">XBoardProtocol</A></FONT></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:49 GMT 2006 -->
|
||||
<TITLE>
|
||||
suicideChess
|
||||
</TITLE>
|
||||
@ -89,6 +89,10 @@ Package suicideChess
|
||||
<TD>This class contains the board representation.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess">ComputerPlayer</A></B></TD>
|
||||
<TD>This class will contain all the AI.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../suicideChess/Move.html" title="class in suicideChess">Move</A></B></TD>
|
||||
<TD>This class is used for moves representation.</TD>
|
||||
</TR>
|
||||
@ -108,6 +112,10 @@ Package suicideChess
|
||||
<TD WIDTH="15%"><B><A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess">SuicideChess</A></B></TD>
|
||||
<TD>Main file (the game in itself)</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD WIDTH="15%"><B><A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess">XBoardProtocol</A></B></TD>
|
||||
<TD>Class used to communicate with XBoard.</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:49 GMT 2006 -->
|
||||
<TITLE>
|
||||
suicideChess Class Hierarchy
|
||||
</TITLE>
|
||||
@ -84,12 +84,12 @@ Class Hierarchy
|
||||
</H2>
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Object<UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess"><B>Move</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess"><B>Piece</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess"><B>Rules</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess"><B>Square</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess"><B>SuicideChess</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Board.html" title="class in suicideChess"><B>Board</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/ComputerPlayer.html" title="class in suicideChess"><B>ComputerPlayer</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Move.html" title="class in suicideChess"><B>Move</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Piece.html" title="class in suicideChess"><B>Piece</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Rules.html" title="class in suicideChess"><B>Rules</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Square.html" title="class in suicideChess"><B>Square</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/SuicideChess.html" title="class in suicideChess"><B>SuicideChess</B></A><LI TYPE="circle">java.lang.Throwable (implements java.io.Serializable)
|
||||
<UL>
|
||||
<LI TYPE="circle">java.lang.Exception<UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>Move.NotAValidMoveException</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Rules.UnexpectedError.html" title="class in suicideChess"><B>Rules.UnexpectedError</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess"><B>Square.NotAValidSquare</B></A></UL>
|
||||
</UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Board.NoPieceOnSquare.html" title="class in suicideChess"><B>Board.NoPieceOnSquare</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Move.NotAValidMoveException.html" title="class in suicideChess"><B>Move.NotAValidMoveException</B></A><LI TYPE="circle">suicideChess.<A HREF="../suicideChess/Square.NotAValidSquare.html" title="class in suicideChess"><B>Square.NotAValidSquare</B></A></UL>
|
||||
</UL>
|
||||
<LI TYPE="circle">suicideChess.<A HREF="../suicideChess/XBoardProtocol.html" title="class in suicideChess"><B>XBoardProtocol</B></A></UL>
|
||||
</UL>
|
||||
<HR>
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!--NewPage-->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Fri Jan 13 17:00:38 GMT 2006 -->
|
||||
<!-- Generated by javadoc (build 1.5.0_05) on Tue Jan 17 15:42:51 GMT 2006 -->
|
||||
<TITLE>
|
||||
Uses of Package suicideChess
|
||||
</TITLE>
|
||||
@ -115,12 +115,6 @@ Classes in <A HREF="../suicideChess/package-summary.html">suicideChess</A> used
|
||||
This class is used for piece representation.</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><B><A HREF="../suicideChess/class-use/Rules.UnexpectedError.html#suicideChess"><B>Rules.UnexpectedError</B></A></B>
|
||||
|
||||
<BR>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||||
<TD><B><A HREF="../suicideChess/class-use/Square.html#suicideChess"><B>Square</B></A></B>
|
||||
|
||||
<BR>
|
||||
|
@ -9,7 +9,7 @@ import suicideChess.Square.NotAValidSquare;
|
||||
/**
|
||||
* This class will contain all the AI.
|
||||
* @author Jean-Baptiste Hétier
|
||||
* @version $LastChangedRevision: 33 $, $LastChangedDate: 2006-01-13 17:03:06 +0000 (Fri, 13 Jan 2006) $
|
||||
* @version $LastChangedRevision$, $LastChangedDate$
|
||||
*/
|
||||
|
||||
public class ComputerPlayer {
|
||||
@ -52,7 +52,11 @@ public class ComputerPlayer {
|
||||
*/
|
||||
public static Move doMinMaxMove(Board bitboard, int color) throws NotAValidSquare, NoPieceOnSquare {
|
||||
bestMove = null;
|
||||
MinMax(bitboard, color, 0);
|
||||
nodesSearched = 0;
|
||||
int bestScore = MinMax(bitboard, color, 0);
|
||||
if (SuicideChess.postThinkingOutput()) {
|
||||
System.out.println(SuicideChess.PLY_DEPTH+" "+bestScore*100+" 0 "+nodesSearched+" "+bestMove);
|
||||
}
|
||||
return bestMove;
|
||||
}
|
||||
|
||||
@ -61,6 +65,9 @@ public class ComputerPlayer {
|
||||
if (currentDepth >= SuicideChess.PLY_DEPTH) {
|
||||
return bitboard.getBoardValue();
|
||||
}
|
||||
|
||||
nodesSearched++;
|
||||
|
||||
Rules.legalMovesForPlayer(bitboard,color);
|
||||
ArrayList<Move> allLegalMoves = Rules.getLegalMovesCapture();
|
||||
if (allLegalMoves.size()==0) {
|
||||
@ -105,4 +112,5 @@ public class ComputerPlayer {
|
||||
}
|
||||
|
||||
private static Move bestMove = null;
|
||||
private static int nodesSearched;
|
||||
}
|
@ -53,7 +53,7 @@ public class SuicideChess {
|
||||
/**
|
||||
* Change the color of the current player
|
||||
*/
|
||||
private static void changeCurrentPlayerColor() {
|
||||
public static void changeCurrentPlayerColor() {
|
||||
if(currentPlayerColor==Piece.WHITE) {
|
||||
currentPlayerColor=Piece.BLACK;
|
||||
if (ASCII_GAME)
|
||||
@ -88,7 +88,41 @@ public class SuicideChess {
|
||||
*/
|
||||
private static boolean acceptedUsermove = false;
|
||||
|
||||
/**
|
||||
* This array is used for undo purposes. Positions are sorted from last to first.
|
||||
*/
|
||||
private static ArrayList<Board> allPlayedPositions = new ArrayList<Board>();
|
||||
|
||||
/**
|
||||
* This function is used to add a new position to the list of all positions
|
||||
* @param position A {@link Board}
|
||||
* @see Board
|
||||
*/
|
||||
private static void addPlayedPosition (Board position) {
|
||||
allPlayedPositions.add(0,new Board(position));
|
||||
}
|
||||
|
||||
/**
|
||||
* This function is used to undo the last position played
|
||||
*/
|
||||
private static Board removePlayedPosition () {
|
||||
changeCurrentPlayerColor();
|
||||
allPlayedPositions.remove(0);
|
||||
return allPlayedPositions.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* This variable says whether the computer should display a "thinking output"
|
||||
*/
|
||||
private static boolean post = true;
|
||||
|
||||
/**
|
||||
* Should computer display thinking output or not ?
|
||||
* @return boolean
|
||||
*/
|
||||
public static boolean postThinkingOutput() {
|
||||
return post;
|
||||
}
|
||||
/**
|
||||
* The main function
|
||||
* @param args No parameters should be transmitted to this function.
|
||||
@ -106,6 +140,7 @@ public class SuicideChess {
|
||||
|
||||
BufferedReader moveInput = new BufferedReader(new InputStreamReader(System.in));
|
||||
Board bitboard = new Board();
|
||||
addPlayedPosition(bitboard);
|
||||
|
||||
if (ASCII_GAME) {
|
||||
bitboard.display();
|
||||
@ -145,7 +180,7 @@ public class SuicideChess {
|
||||
playing=false;
|
||||
break;
|
||||
case XBoardProtocol.NEW:
|
||||
System.out.println("variant suicide");
|
||||
//System.out.println("variant suicide");
|
||||
break;
|
||||
case XBoardProtocol.HINT:
|
||||
System.out.println("Hint: "+ComputerPlayer.doRandomMove(bitboard,currentPlayerColor));
|
||||
@ -153,6 +188,24 @@ public class SuicideChess {
|
||||
case XBoardProtocol.FORCE:
|
||||
computerPlaying = false;
|
||||
break;
|
||||
case XBoardProtocol.PING:
|
||||
System.out.println("pong "+whatMove.substring(5));
|
||||
break;
|
||||
case XBoardProtocol.REMOVE:
|
||||
removePlayedPosition();
|
||||
//no break here
|
||||
case XBoardProtocol.UNDO:
|
||||
bitboard=new Board(removePlayedPosition());
|
||||
if (ASCII_GAME) {
|
||||
bitboard.display();
|
||||
}
|
||||
break;
|
||||
case XBoardProtocol.POST:
|
||||
post=true;
|
||||
break;
|
||||
case XBoardProtocol.NOPOST:
|
||||
post=false;
|
||||
break;
|
||||
case XBoardProtocol.UNKNOWN:
|
||||
if (acceptedUsermove) {
|
||||
System.out.println("Error (unknown command): "+whatMove);
|
||||
@ -196,6 +249,8 @@ public class SuicideChess {
|
||||
System.out.println("Illegal move: "+theMove.toString());
|
||||
} else {
|
||||
bitboard.doMove(allLegalMoves.get(foundMoveIndex));
|
||||
changeCurrentPlayerColor();
|
||||
addPlayedPosition(bitboard);
|
||||
if (ASCII_GAME) {
|
||||
allLegalMoves.get(foundMoveIndex).display();
|
||||
System.out.println("Board value: "+bitboard.getBoardValue());
|
||||
@ -216,7 +271,6 @@ public class SuicideChess {
|
||||
if (!playedALegalMove) {
|
||||
break;
|
||||
}
|
||||
changeCurrentPlayerColor();
|
||||
//No break statement here on purpose.
|
||||
case XBoardProtocol.GO:
|
||||
//this is not really nice but it avoids having to write twice the code
|
||||
@ -227,13 +281,14 @@ public class SuicideChess {
|
||||
if (computerPlaying) {
|
||||
Move computerMove = ComputerPlayer.doMinMaxMove(bitboard,currentPlayerColor);
|
||||
bitboard.doMove(computerMove);
|
||||
addPlayedPosition(bitboard);
|
||||
XBoardProtocol.doMove(computerMove);
|
||||
changeCurrentPlayerColor();
|
||||
if (ASCII_GAME) {
|
||||
computerMove.display();
|
||||
System.out.println("Board value: "+bitboard.getBoardValue());
|
||||
bitboard.display();
|
||||
}
|
||||
changeCurrentPlayerColor();
|
||||
}
|
||||
if (testWinningPosition(bitboard)) {
|
||||
computerPlaying=false;
|
||||
@ -280,6 +335,7 @@ public class SuicideChess {
|
||||
continue;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* Class used to communicate with XBoard.
|
||||
* @author Jean-Baptiste Hétier
|
||||
* @version $LastChangedRevision: 33 $, $LastChangedDate: 2006-01-13 17:03:06 +0000 (Fri, 13 Jan 2006) $
|
||||
* @version $LastChangedRevision$, $LastChangedDate$
|
||||
*/
|
||||
public class XBoardProtocol {
|
||||
|
||||
@ -62,6 +62,26 @@ public class XBoardProtocol {
|
||||
* XBoard did not accept variant suicide chess
|
||||
*/
|
||||
public static final int NOT_ACCEPTED_SUICIDE = 11;
|
||||
/**
|
||||
* XBoard sent a ping signal
|
||||
*/
|
||||
public static final int PING = 12;
|
||||
/**
|
||||
* XBoard sent an Undo signal
|
||||
*/
|
||||
public static final int UNDO = 13;
|
||||
/**
|
||||
* Xboard sent a remove signal (treated at two undos)
|
||||
*/
|
||||
public static final int REMOVE = 14;
|
||||
/**
|
||||
* Xboard asks to display thinking output
|
||||
*/
|
||||
public static final int POST = 15;
|
||||
/**
|
||||
* Xboard asks NOT to display thinking output
|
||||
*/
|
||||
public static final int NOPOST = 16;
|
||||
/**
|
||||
* Unknown command
|
||||
*/
|
||||
@ -74,10 +94,11 @@ public class XBoardProtocol {
|
||||
*/
|
||||
public static void initialise() throws IOException {
|
||||
//done=1 is here to tell that the program has finish requesting features
|
||||
System.out.println("feature myname=\"djib's Suicide Chess\"");
|
||||
System.out.println("feature sigint=0 sigterm=0");
|
||||
System.out.println("feature usermove=1"); //sends moves like 'usermove e2e4'
|
||||
System.out.println("feature myname=\"djib's Suicide Chess\"");
|
||||
System.out.println("feature sigint=0 sigterm=0"); //do not interrupt me
|
||||
System.out.println("feature variants=\"suicide\"");
|
||||
System.out.println("feature ping=1");
|
||||
System.out.println("feature time=0 draw=0 reuse=0 analyze=0 colors=0");
|
||||
System.out.println("feature done=1");
|
||||
if (SuicideChess.ASCII_GAME)
|
||||
@ -123,6 +144,16 @@ public class XBoardProtocol {
|
||||
return HINT;
|
||||
} else if (command.equals("force")) {
|
||||
return FORCE;
|
||||
} else if (command.startsWith("ping")) {
|
||||
return PING;
|
||||
} else if (command.equals("undo")) {
|
||||
return UNDO;
|
||||
} else if (command.equals("remove")) {
|
||||
return REMOVE;
|
||||
} else if (command.equals("post")) {
|
||||
return POST;
|
||||
} else if (command.equals("nopost")) {
|
||||
return NOPOST;
|
||||
}
|
||||
|
||||
return UNKNOWN;
|
||||
|
Reference in New Issue
Block a user