From 39b3108d7ab2a7b88a08a184ac5505e71db7d0d2 Mon Sep 17 00:00:00 2001 From: hemantsharma98 Date: Fri, 30 Apr 2021 02:11:56 +0530 Subject: [PATCH 01/10] Merged with hemant9 --- .gitignore | 1 + Doxyfile | 32 +-- UserStories.md | 30 --- html/_bishop_8java.html | 7 +- html/_board_8java.html | 7 +- html/_checkmated_checker_8java.html | 7 +- html/_chess_8java.html | 7 +- html/_field_8java.html | 7 +- html/_figure_8java.html | 7 +- html/_information_board_8java.html | 7 +- html/_king_8java.html | 7 +- html/_knight_8java.html | 7 +- html/_main_8java.html | 7 +- html/_pawn_8java.html | 7 +- html/_queen_8java.html | 7 +- html/_rook_8java.html | 7 +- html/annotated.html | 5 +- html/classes.html | 5 +- html/classgame_1_1_bishop-members.html | 5 +- html/classgame_1_1_bishop.html | 20 +- html/classgame_1_1_board-members.html | 22 +- html/classgame_1_1_board.html | 207 +++++------------- ..._1_1_board_1_1_board_listener-members.html | 14 +- ...lassgame_1_1_board_1_1_board_listener.html | 36 ++- html/classgame_1_1_checkmated_checker.html | 7 +- html/classgame_1_1_chess-members.html | 5 +- html/classgame_1_1_chess.html | 7 +- html/classgame_1_1_field-members.html | 5 +- html/classgame_1_1_field.html | 7 +- html/classgame_1_1_figure-members.html | 7 +- html/classgame_1_1_figure.html | 71 +----- ...assgame_1_1_information_board-members.html | 5 +- html/classgame_1_1_information_board.html | 7 +- html/classgame_1_1_king-members.html | 5 +- html/classgame_1_1_king.html | 20 +- html/classgame_1_1_knight-members.html | 5 +- html/classgame_1_1_knight.html | 20 +- html/classgame_1_1_main-members.html | 13 +- html/classgame_1_1_main.html | 62 +----- html/classgame_1_1_pawn-members.html | 5 +- html/classgame_1_1_pawn.html | 20 +- html/classgame_1_1_queen-members.html | 22 +- html/classgame_1_1_queen.html | 49 ++--- html/classgame_1_1_rook-members.html | 20 +- html/classgame_1_1_rook.html | 49 ++--- .../dir_3d15855b4027e8ce7f7bf32098ce43fb.html | 84 +++++++ .../dir_6d86088f2652777a7b9f92e683f4b85c.html | 84 +++++++ .../dir_6f64cb3ebd16e15eeb118c86eedc9403.html | 108 +++++++++ .../dir_a53f3f8ead2fa185ebee12de25540532.html | 84 +++++++ .../dir_f6038d1eef9a3654e728fddac13128eb.html | 84 +++++++ .../dir_fbb5535047021267aa2a3b6da287446c.html | 84 +++++++ html/files.html | 43 ++-- html/functions.html | 67 +++--- html/functions_func.html | 40 ++-- html/functions_vars.html | 80 +------ html/hierarchy.html | 5 +- html/index.html | 7 +- html/menudata.js | 21 +- html/namespacegame.html | 5 +- html/namespaces.html | 5 +- html/search/all_1.js | 9 +- html/search/all_10.js | 4 +- html/search/all_11.js | 4 +- html/search/all_12.js | 2 +- html/search/all_13.js | 2 +- html/search/all_2.js | 23 +- html/search/all_4.js | 9 +- html/search/all_5.js | 19 +- html/search/all_6.js | 27 +-- html/search/all_7.js | 8 +- html/search/all_8.js | 2 +- html/search/all_9.js | 10 +- html/search/all_a.js | 6 +- html/search/all_b.js | 7 +- html/search/all_c.js | 7 +- html/search/all_d.js | 9 +- html/search/all_e.js | 23 +- html/search/all_f.js | 15 +- html/search/classes_0.js | 6 +- html/search/classes_1.js | 4 +- html/search/classes_2.js | 4 +- html/search/classes_3.js | 2 +- html/search/classes_4.js | 4 +- html/search/classes_5.js | 2 +- html/search/classes_6.js | 2 +- html/search/classes_7.js | 2 +- html/search/classes_8.js | 2 +- html/search/files_0.js | 4 +- html/search/files_1.js | 4 +- html/search/files_2.js | 4 +- html/search/files_3.js | 2 +- html/search/files_4.js | 4 +- html/search/files_5.js | 2 +- html/search/files_6.js | 2 +- html/search/files_7.js | 2 +- html/search/files_8.js | 3 +- html/search/functions_0.js | 2 +- html/search/functions_1.js | 4 +- html/search/functions_2.js | 14 +- html/search/functions_3.js | 4 +- html/search/functions_4.js | 17 +- html/search/functions_5.js | 14 +- html/search/functions_6.js | 4 +- html/search/functions_7.js | 2 +- html/search/functions_8.js | 6 +- html/search/functions_9.js | 7 +- html/search/functions_a.js | 5 +- html/search/functions_b.js | 6 +- html/search/functions_c.js | 19 +- html/search/functions_d.html | 37 ++++ html/search/functions_d.js | 15 ++ html/search/functions_e.html | 37 ++++ html/search/functions_e.js | 4 + html/search/namespaces_0.js | 2 +- html/search/searchdata.js | 15 +- html/search/variables_0.js | 2 +- html/search/variables_1.js | 4 +- html/search/variables_2.js | 6 +- html/search/variables_3.js | 2 +- html/search/variables_4.js | 4 +- html/search/variables_5.js | 11 +- html/search/variables_6.js | 3 +- html/search/variables_7.js | 4 +- html/search/variables_8.js | 5 +- html/search/variables_9.js | 3 +- html/search/variables_a.js | 2 +- pom.xml | 8 + src/main/java/game/Bishop.java | 14 ++ src/main/java/game/Board.java | 117 +++++++++- src/main/java/game/King.java | 14 ++ src/main/java/game/Knight.java | 16 +- src/main/java/game/Main.java | 49 +---- src/main/java/game/Pawn.java | 16 +- src/main/java/game/Queen.java | 15 +- src/main/java/game/Rook.java | 17 +- src/main/java/game/bishop_black.png | Bin 2106 -> 1069 bytes src/main/java/game/bishop_white.png | Bin 2207 -> 1541 bytes src/main/java/game/king_black.png | Bin 2114 -> 1014 bytes src/main/java/game/king_white.png | Bin 2334 -> 1441 bytes src/main/java/game/knight_black.png | Bin 2146 -> 1376 bytes src/main/java/game/knight_white.png | Bin 2511 -> 1741 bytes src/main/java/game/pawn_black.png | Bin 1513 -> 866 bytes src/main/java/game/pawn_white.png | Bin 1572 -> 1273 bytes src/main/java/game/queen_black.png | Bin 2857 -> 984 bytes src/main/java/game/queen_white.png | Bin 3090 -> 1469 bytes src/main/java/game/rook_black.png | Bin 1167 -> 1554 bytes src/main/java/game/rook_white.png | Bin 1295 -> 1208 bytes src/main/resources/bishop_black.png | Bin 2106 -> 1069 bytes src/main/resources/bishop_white.png | Bin 2207 -> 1541 bytes src/main/resources/king_black.png | Bin 2114 -> 1014 bytes src/main/resources/king_white.png | Bin 2334 -> 1441 bytes src/main/resources/knight_black.png | Bin 2146 -> 1376 bytes src/main/resources/knight_white.png | Bin 2511 -> 1741 bytes src/main/resources/pawn_black.png | Bin 1513 -> 866 bytes src/main/resources/pawn_white.png | Bin 1572 -> 1273 bytes src/main/resources/queen_black.png | Bin 2857 -> 984 bytes src/main/resources/queen_white.png | Bin 3090 -> 1469 bytes src/main/resources/rook_black.png | Bin 1167 -> 1554 bytes src/main/resources/rook_white.png | Bin 1295 -> 1208 bytes src/test/java/game/BoardTest.java | 29 +++ 160 files changed, 1459 insertions(+), 1017 deletions(-) create mode 100644 .gitignore create mode 100644 html/dir_3d15855b4027e8ce7f7bf32098ce43fb.html create mode 100644 html/dir_6d86088f2652777a7b9f92e683f4b85c.html create mode 100644 html/dir_6f64cb3ebd16e15eeb118c86eedc9403.html create mode 100644 html/dir_a53f3f8ead2fa185ebee12de25540532.html create mode 100644 html/dir_f6038d1eef9a3654e728fddac13128eb.html create mode 100644 html/dir_fbb5535047021267aa2a3b6da287446c.html create mode 100644 html/search/functions_d.html create mode 100644 html/search/functions_d.js create mode 100644 html/search/functions_e.html create mode 100644 html/search/functions_e.js create mode 100644 src/test/java/game/BoardTest.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a6f89c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target/ \ No newline at end of file diff --git a/Doxyfile b/Doxyfile index 0b8a903..32b9db1 100644 --- a/Doxyfile +++ b/Doxyfile @@ -32,19 +32,19 @@ DOXYFILE_ENCODING = UTF-8 # title of most generated pages and in a few other places. # The default value is: My Project. -PROJECT_NAME = "Chess" +PROJECT_NAME = chess # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = +PROJECT_NUMBER = # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. -PROJECT_BRIEF = "The game of chess" +PROJECT_BRIEF = # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 @@ -58,7 +58,7 @@ PROJECT_LOGO = # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. -OUTPUT_DIRECTORY = +OUTPUT_DIRECTORY = "D:\Doxygen Chess" # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and @@ -269,7 +269,7 @@ TAB_SIZE = 4 # commands \{ and \} for these it is advised to use the version @{ and @} or use # a double escape (\\{ and \\}) -ALIASES = "imp=\xrefitem implementation \"Implements\" \"User Story Traceability\"" +ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. For @@ -497,19 +497,19 @@ EXTRACT_PRIVATE = YES # methods of a class will be included in the documentation. # The default value is: NO. -EXTRACT_PRIV_VIRTUAL = YES +EXTRACT_PRIV_VIRTUAL = NO # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal # scope will be included in the documentation. # The default value is: NO. -EXTRACT_PACKAGE = YES +EXTRACT_PACKAGE = NO # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. # The default value is: NO. -EXTRACT_STATIC = YES +EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, @@ -864,7 +864,7 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = +INPUT = D:\chess\chess\src\main\java\game # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses @@ -943,7 +943,7 @@ FILE_PATTERNS = *.c \ # be searched for input files as well. # The default value is: NO. -RECURSIVE = YES +RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a @@ -952,7 +952,7 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = +EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded @@ -2159,6 +2159,10 @@ DOCBOOK_PROGRAMLISTING = NO GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# Configuration options related to Sqlite3 output +#--------------------------------------------------------------------------- + #--------------------------------------------------------------------------- # Configuration options related to the Perl module output #--------------------------------------------------------------------------- @@ -2420,7 +2424,7 @@ GROUP_GRAPHS = YES # The default value is: NO. # This tag requires that the tag HAVE_DOT is set to YES. -UML_LOOK = YES +UML_LOOK = NO # If the UML_LOOK tag is enabled, the fields and methods are shown inside the # class node. If there are many fields or methods and many nodes the graph may @@ -2493,7 +2497,7 @@ INCLUDED_BY_GRAPH = YES # The default value is: NO. # This tag requires that the tag HAVE_DOT is set to YES. -CALL_GRAPH = YES +CALL_GRAPH = NO # If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller # dependency graph for every global function or class method. @@ -2505,7 +2509,7 @@ CALL_GRAPH = YES # The default value is: NO. # This tag requires that the tag HAVE_DOT is set to YES. -CALLER_GRAPH = YES +CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical # hierarchy of all classes instead of a textual one. diff --git a/UserStories.md b/UserStories.md index c01ed27..8085941 100644 --- a/UserStories.md +++ b/UserStories.md @@ -1,33 +1,3 @@ US001 - As a player, I would like to be able to play against the computer so that I can play when there's nobody else around. -Task001.1 - Determine method for choosing which piece computer will move. - 5 points - -Task001.2 - Determine method for choosing which move computer will make. - 5 points - -Task001.3 - Demonstrate computer moving a piece. - 8 points - US002 - As a player, I would like the ability to change pawns to another piece when they reach the other side of the board so that the game follows the normal rules of chess. - -US003 - As a player, I would like to see the number of moves I would take in the game. - -US004 - As a player, I would like to see upgraded icons with better visuals. - -US005 - As a player, I would like to be able to see a timer so that I can improve my ability to make moves quickly. - -US006 - As a player, I would like to be able to see a score so that I can tell how well I am doing in the game. - -US007 - As a player, I would like to be able to choose the number of players at the beginning of the game so that I can play with either the computer or another person. - -Task007.1 - Determine method for choosing number of players. - 2 points - -Task007.2 - Demonstrate ability to choose number of players. - 3 points - -US008 - As a player, I would like to be able to edit the player name so that I can see who is playing. - -US009 - As a developer, I would like the code to have formatted documentation so that it is easier to maintain. - -Task009.1 - Configure the Doxyfile - 3 points - -Task009.2 - Add ability to add links in documentation to relevant tasks - 1 point - -Task009.3 - Add ability to link tasks to relevant User Stories - 1 point diff --git a/html/_bishop_8java.html b/html/_bishop_8java.html index e3e8899..f047630 100644 --- a/html/_bishop_8java.html +++ b/html/_bishop_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Bishop.java File Reference +chess: D:/chess/chess/src/main/java/game/Bishop.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_board_8java.html b/html/_board_8java.html index d7a8dca..c8d31d7 100644 --- a/html/_board_8java.html +++ b/html/_board_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Board.java File Reference +chess: D:/chess/chess/src/main/java/game/Board.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_checkmated_checker_8java.html b/html/_checkmated_checker_8java.html index 612a2b1..769c483 100644 --- a/html/_checkmated_checker_8java.html +++ b/html/_checkmated_checker_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/CheckmatedChecker.java File Reference +chess: D:/chess/chess/src/main/java/game/CheckmatedChecker.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_chess_8java.html b/html/_chess_8java.html index 637addc..84c36d1 100644 --- a/html/_chess_8java.html +++ b/html/_chess_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Chess.java File Reference +chess: D:/chess/chess/src/main/java/game/Chess.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_field_8java.html b/html/_field_8java.html index caad97f..9f93c6b 100644 --- a/html/_field_8java.html +++ b/html/_field_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Field.java File Reference +chess: D:/chess/chess/src/main/java/game/Field.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_figure_8java.html b/html/_figure_8java.html index 59213f0..431648d 100644 --- a/html/_figure_8java.html +++ b/html/_figure_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Figure.java File Reference +chess: D:/chess/chess/src/main/java/game/Figure.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_information_board_8java.html b/html/_information_board_8java.html index b1c9853..ba14547 100644 --- a/html/_information_board_8java.html +++ b/html/_information_board_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/InformationBoard.java File Reference +chess: D:/chess/chess/src/main/java/game/InformationBoard.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_king_8java.html b/html/_king_8java.html index 1d2ffb3..a2358ac 100644 --- a/html/_king_8java.html +++ b/html/_king_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/King.java File Reference +chess: D:/chess/chess/src/main/java/game/King.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_knight_8java.html b/html/_knight_8java.html index a8f670b..93a41d3 100644 --- a/html/_knight_8java.html +++ b/html/_knight_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Knight.java File Reference +chess: D:/chess/chess/src/main/java/game/Knight.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_main_8java.html b/html/_main_8java.html index 1f77220..411d78d 100644 --- a/html/_main_8java.html +++ b/html/_main_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Main.java File Reference +chess: D:/chess/chess/src/main/java/game/Main.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_pawn_8java.html b/html/_pawn_8java.html index 044a2c9..de2376f 100644 --- a/html/_pawn_8java.html +++ b/html/_pawn_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Pawn.java File Reference +chess: D:/chess/chess/src/main/java/game/Pawn.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_queen_8java.html b/html/_queen_8java.html index 7d49005..62ca80c 100644 --- a/html/_queen_8java.html +++ b/html/_queen_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Queen.java File Reference +chess: D:/chess/chess/src/main/java/game/Queen.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/_rook_8java.html b/html/_rook_8java.html index 0177e1e..139cdcb 100644 --- a/html/_rook_8java.html +++ b/html/_rook_8java.html @@ -5,7 +5,7 @@ -Chess: src/main/java/game/Rook.java File Reference +chess: D:/chess/chess/src/main/java/game/Rook.java File Reference @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
@@ -62,7 +61,7 @@
diff --git a/html/annotated.html b/html/annotated.html index 3df4e3e..511021d 100644 --- a/html/annotated.html +++ b/html/annotated.html @@ -5,7 +5,7 @@ -Chess: Class List +chess: Class List @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
diff --git a/html/classes.html b/html/classes.html index a0beb27..2b418a8 100644 --- a/html/classes.html +++ b/html/classes.html @@ -5,7 +5,7 @@ -Chess: Class Index +chess: Class Index @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
diff --git a/html/classgame_1_1_bishop-members.html b/html/classgame_1_1_bishop-members.html index e7dd3ac..fca0b14 100644 --- a/html/classgame_1_1_bishop-members.html +++ b/html/classgame_1_1_bishop-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
Chess +
chess
-
The game of chess
diff --git a/html/classgame_1_1_bishop.html b/html/classgame_1_1_bishop.html index dc477d8..f49fa54 100644 --- a/html/classgame_1_1_bishop.html +++ b/html/classgame_1_1_bishop.html @@ -5,7 +5,7 @@ -Chess: game.Bishop Class Reference +chess: game.Bishop Class Reference @@ -21,9 +21,8 @@ -
@@ -203,7 +211,7 @@

-

Reimplemented from game.Figure.

+

Reimplemented from game.Figure.

@@ -231,12 +239,12 @@

-

Reimplemented from game.Figure.

+

Reimplemented from game.Figure.


The documentation for this class was generated from the following file:
diff --git a/html/classgame_1_1_board-members.html b/html/classgame_1_1_board-members.html index 67f50c5..94c1b6d 100644 --- a/html/classgame_1_1_board-members.html +++ b/html/classgame_1_1_board-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
-

Member Data Documentation

-
-

◆ arrayBoard

- -
-
- - - @@ -241,11 +214,19 @@

+

This method creates and start new frame with their different functionalities.

Parameters
+

- - + + +
Field [][] game.Board.arrayBoard)
+ + +
whiteTurnfirst parameter to display white moves in new frame.
blackTurnsecond parameter to display black moves in new frame.
+ + +
Returns
void
- -

◆ blackFiguresList

+ +

◆ printActivePlayer()

@@ -254,7 +235,10 @@

- + + + +
ArrayList<Figure> game.Board.blackFiguresListvoid game.Board.printActivePlayer ()
@@ -266,8 +250,8 @@

-

◆ collisionField

+ +

◆ timer()

- -

◆ destroyedFiguresList

+

Member Data Documentation

+ +

◆ arrayBoard

@@ -298,7 +287,7 @@

- +
ArrayList<Figure> game.Board.destroyedFiguresListField [][] game.Board.arrayBoard
@@ -310,8 +299,8 @@

-

◆ field

+ +

◆ blackFiguresList

- -

◆ infoBoard

+ +

◆ destroyedFiguresList

- -

◆ isWhitesTurn

- -
-
- - - - - -
- - - - -
boolean game.Board.isWhitesTurn = true
-
-package
-
- -
-
- -

◆ oldField

- -
-
- - - - - -
- - - - -
Field game.Board.oldField = null
-
-package
-
- -
-
- -

◆ saveXCoord

- -
-
- - - - - -
- - - - -
int game.Board.saveXCoord
-
-package
-
- -
-
- -

◆ saveYCoord

- -
-
- - - - - -
- - - - -
int game.Board.saveYCoord
-
-package
-
-
@@ -487,7 +388,7 @@

Board.java +
  • D:/chess/chess/src/main/java/game/Board.java
  • diff --git a/html/classgame_1_1_board_1_1_board_listener-members.html b/html/classgame_1_1_board_1_1_board_listener-members.html index 4047c82..b938074 100644 --- a/html/classgame_1_1_board_1_1_board_listener-members.html +++ b/html/classgame_1_1_board_1_1_board_listener-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -75,10 +74,11 @@ - - - - + + + + +
    actionPerformed(java.awt.event.ActionEvent event)game.Board.BoardListener
    checkCheckmated(boolean blackKing)game.Board.BoardListenerprivate
    removeMarker()game.Board.BoardListenerprivate
    setCheckedFalse()game.Board.BoardListenerprivate
    setCheckedFields(ArrayList teamList, boolean black)game.Board.BoardListener
    setCheckedFieldsKing(ArrayList teamList, boolean black)game.Board.BoardListener
    noOfMoves()game.Board.BoardListenerprivate
    removeMarker()game.Board.BoardListenerprivate
    setCheckedFalse()game.Board.BoardListenerprivate
    setCheckedFields(ArrayList teamList, boolean black)game.Board.BoardListener
    setCheckedFieldsKing(ArrayList teamList, boolean black)game.Board.BoardListener
    @@ -142,6 +144,32 @@

    +

    +
    + +

    ◆ noOfMoves()

    + +
    +
    + + + + + +
    + + + + + + + +
    void game.Board.BoardListener.noOfMoves ()
    +
    +private
    +
    +

    This method increments the counter of black and white.

    Returns
    void
    +
    @@ -251,7 +279,7 @@

    Board.java +
  • D:/chess/chess/src/main/java/game/Board.java
  • diff --git a/html/classgame_1_1_checkmated_checker.html b/html/classgame_1_1_checkmated_checker.html index 6587231..4d119cd 100644 --- a/html/classgame_1_1_checkmated_checker.html +++ b/html/classgame_1_1_checkmated_checker.html @@ -5,7 +5,7 @@ -Chess: game.CheckmatedChecker Class Reference +chess: game.CheckmatedChecker Class Reference @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -73,7 +72,7 @@

    Detailed Description

    Author
    gersc

    The documentation for this class was generated from the following file:
    diff --git a/html/classgame_1_1_chess-members.html b/html/classgame_1_1_chess-members.html index 0b54981..ceb6ccc 100644 --- a/html/classgame_1_1_chess-members.html +++ b/html/classgame_1_1_chess-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_chess.html b/html/classgame_1_1_chess.html index b07063f..963ad20 100644 --- a/html/classgame_1_1_chess.html +++ b/html/classgame_1_1_chess.html @@ -5,7 +5,7 @@ -Chess: game.Chess Class Reference +chess: game.Chess Class Reference @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -207,7 +206,7 @@

    Chess.java +
  • D:/chess/chess/src/main/java/game/Chess.java
  • diff --git a/html/classgame_1_1_field-members.html b/html/classgame_1_1_field-members.html index 36c2c50..4bd203f 100644 --- a/html/classgame_1_1_field-members.html +++ b/html/classgame_1_1_field-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_field.html b/html/classgame_1_1_field.html index 907abe3..a635a95 100644 --- a/html/classgame_1_1_field.html +++ b/html/classgame_1_1_field.html @@ -5,7 +5,7 @@ -Chess: game.Field Class Reference +chess: game.Field Class Reference @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -610,7 +609,7 @@

    Field.java +
  • D:/chess/chess/src/main/java/game/Field.java
  • diff --git a/html/classgame_1_1_figure-members.html b/html/classgame_1_1_figure-members.html index 28524ee..ba803e5 100644 --- a/html/classgame_1_1_figure-members.html +++ b/html/classgame_1_1_figure-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -73,8 +72,6 @@

    This is the complete list of members for game.Figure, including all inherited members.

    - - diff --git a/html/classgame_1_1_figure.html b/html/classgame_1_1_figure.html index 71caef3..7dda1ba 100644 --- a/html/classgame_1_1_figure.html +++ b/html/classgame_1_1_figure.html @@ -5,7 +5,7 @@ -Chess: game.Figure Class Reference +chess: game.Figure Class Reference @@ -21,9 +21,8 @@ @@ -69,7 +68,6 @@
    game.Figure Class Referenceabstract
    @@ -129,13 +127,6 @@ -
    checkCollision(Field field)game.Figurepackage
    checkTarget(Field field)game.Figurepackage
    collisionFieldgame.Figure
    fieldgame.Figure
    Figure(int x, int y, boolean black, Field field)game.Figure
    -
    Chess +
    chess
    -
    The game of chess
     
    Field field
     
    - - - - -

    -Package Functions

    abstract boolean checkTarget (Field field)
     
    abstract boolean checkCollision (Field field)
     

    Detailed Description

    Author
    gersc
    @@ -181,62 +172,6 @@

    Member Function Documentation

    - -

    ◆ checkCollision()

    - -
    -
    - - - - - -
    - - - - - - - - -
    abstract boolean game.Figure.checkCollision (Field field)
    -
    -abstractpackage
    -
    - -

    Reimplemented in game.Rook, game.Queen, game.Pawn, game.Knight, game.King, and game.Bishop.

    - -
    -
    - -

    ◆ checkTarget()

    - -
    -
    - - - - - -
    - - - - - - - - -
    abstract boolean game.Figure.checkTarget (Field field)
    -
    -abstractpackage
    -
    - -

    Reimplemented in game.Rook, game.Queen, game.Pawn, game.Knight, game.King, and game.Bishop.

    - -
    -

    ◆ getField()

    @@ -501,7 +436,7 @@

    Figure.java +
  • D:/chess/chess/src/main/java/game/Figure.java
  • diff --git a/html/classgame_1_1_information_board-members.html b/html/classgame_1_1_information_board-members.html index c84e156..8154462 100644 --- a/html/classgame_1_1_information_board-members.html +++ b/html/classgame_1_1_information_board-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_information_board.html b/html/classgame_1_1_information_board.html index d25822b..96167d2 100644 --- a/html/classgame_1_1_information_board.html +++ b/html/classgame_1_1_information_board.html @@ -5,7 +5,7 @@ -Chess: game.InformationBoard Class Reference +chess: game.InformationBoard Class Reference @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -178,7 +177,7 @@

    InformationBoard.java +
  • D:/chess/chess/src/main/java/game/InformationBoard.java
  • diff --git a/html/classgame_1_1_king-members.html b/html/classgame_1_1_king-members.html index 79cad7f..ffc920b 100644 --- a/html/classgame_1_1_king-members.html +++ b/html/classgame_1_1_king-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_king.html b/html/classgame_1_1_king.html index f7c2014..169b2e0 100644 --- a/html/classgame_1_1_king.html +++ b/html/classgame_1_1_king.html @@ -5,7 +5,7 @@ -Chess: game.King Class Reference +chess: game.King Class Reference @@ -21,9 +21,8 @@ -
    @@ -203,7 +211,7 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.

    @@ -231,7 +239,7 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.

    @@ -276,7 +284,7 @@

    King.java +
  • D:/chess/chess/src/main/java/game/King.java
  • diff --git a/html/classgame_1_1_knight-members.html b/html/classgame_1_1_knight-members.html index 2ff4086..7153932 100644 --- a/html/classgame_1_1_knight-members.html +++ b/html/classgame_1_1_knight-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_knight.html b/html/classgame_1_1_knight.html index c05d220..290592e 100644 --- a/html/classgame_1_1_knight.html +++ b/html/classgame_1_1_knight.html @@ -5,7 +5,7 @@ -Chess: game.Knight Class Reference +chess: game.Knight Class Reference @@ -21,9 +21,8 @@ -
    @@ -203,7 +211,7 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.

    @@ -231,12 +239,12 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.


    The documentation for this class was generated from the following file:
    diff --git a/html/classgame_1_1_main-members.html b/html/classgame_1_1_main-members.html index d0d2f79..ba1b467 100644 --- a/html/classgame_1_1_main-members.html +++ b/html/classgame_1_1_main-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -73,11 +72,9 @@

    This is the complete list of members for game.Main, including all inherited members.

    - - - - - + + +
    getNumberOfPlayers()game.Main
    Main()game.Main
    main(String[] args)game.Mainstatic
    startOnePlayer()game.Main
    startTwoPlayer()game.Main
    Main()game.Main
    main(String[] args)game.Mainstatic
    newGame()game.Main

    ◆ main()

    @@ -165,42 +139,26 @@

    -

    ◆ startOnePlayer()

    + +

    ◆ newGame()

    - + - - -
    void game.Main.startOnePlayer void game.Main.newGame ( )
    -
    - -
    -
    - -

    ◆ startTwoPlayer()

    - -
    -
    - - - - - - +
    void game.Main.startTwoPlayer () throws Exception
    +

    This method starts new game.

    Returns
    void

    The documentation for this class was generated from the following file:

    diff --git a/html/classgame_1_1_pawn-members.html b/html/classgame_1_1_pawn-members.html index 14217cf..8bb6033 100644 --- a/html/classgame_1_1_pawn-members.html +++ b/html/classgame_1_1_pawn-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    diff --git a/html/classgame_1_1_pawn.html b/html/classgame_1_1_pawn.html index 39461e2..c75ee47 100644 --- a/html/classgame_1_1_pawn.html +++ b/html/classgame_1_1_pawn.html @@ -5,7 +5,7 @@ -Chess: game.Pawn Class Reference +chess: game.Pawn Class Reference @@ -21,9 +21,8 @@ -
    @@ -219,7 +227,7 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.

    @@ -289,7 +297,7 @@

    -

    Reimplemented from game.Figure.

    +

    Reimplemented from game.Figure.

    @@ -352,7 +360,7 @@

    Pawn.java +
  • D:/chess/chess/src/main/java/game/Pawn.java
  • diff --git a/html/classgame_1_1_queen-members.html b/html/classgame_1_1_queen-members.html index 7c0c99c..16b749e 100644 --- a/html/classgame_1_1_queen-members.html +++ b/html/classgame_1_1_queen-members.html @@ -5,7 +5,7 @@ -Chess: Member List +chess: Member List @@ -21,9 +21,8 @@ -
    Chess +
    chess
    -
    The game of chess
    @@ -85,15 +84,14 @@ isBlackgame.Figure isMovePossible(Field field)game.Figure isMoveValid(Field field)game.Figure - isOddgame.Queenpackage - markCollisionField(Field field)game.Figure - oldXgame.Figure - oldYgame.Figure - Queen(int x, int y, boolean black, Field field)game.Queen - removeCollisionMarker()game.Figure - removeTexture()game.Figure - setField(Field field)game.Figure - setTexture()game.Figure + markCollisionField(Field field)game.Figure + oldXgame.Figure + oldYgame.Figure + Queen(int x, int y, boolean black, Field field)game.Queen + removeCollisionMarker()game.Figure + removeTexture()game.Figure + setField(Field field)game.Figure + setTexture()game.Figure