From c28b95f149a29e2dfa459c0a4751d38387107d58 Mon Sep 17 00:00:00 2001 From: Lezzio Date: Sun, 3 Jun 2018 21:49:52 +0200 Subject: [PATCH] Improve AI by selecting a random 'equal best move', this avoid repetitive play and creates opportunities --- doc/allclasses-frame.html | 40 ++ doc/allclasses-noframe.html | 40 ++ doc/constant-values.html | 274 +++++++++ doc/fr/insalyon/chess/ChessGame.html | 269 ++++++++ doc/fr/insalyon/chess/Game.html | 497 +++++++++++++++ doc/fr/insalyon/chess/ai/ChessAI.html | 348 +++++++++++ doc/fr/insalyon/chess/ai/ChessAI2.html | 397 ++++++++++++ doc/fr/insalyon/chess/ai/ChessAI3.html | 358 +++++++++++ .../insalyon/chess/ai/class-use/ChessAI.html | 122 ++++ .../insalyon/chess/ai/class-use/ChessAI2.html | 162 +++++ .../insalyon/chess/ai/class-use/ChessAI3.html | 162 +++++ doc/fr/insalyon/chess/ai/package-frame.html | 22 + doc/fr/insalyon/chess/ai/package-summary.html | 148 +++++ doc/fr/insalyon/chess/ai/package-tree.html | 137 +++++ doc/fr/insalyon/chess/ai/package-use.html | 158 +++++ .../insalyon/chess/class-use/ChessGame.html | 122 ++++ doc/fr/insalyon/chess/class-use/Game.html | 349 +++++++++++ doc/fr/insalyon/chess/core/AbstractPawn.html | 439 ++++++++++++++ doc/fr/insalyon/chess/core/End.html | 351 +++++++++++ doc/fr/insalyon/chess/core/Location.html | 471 ++++++++++++++ .../insalyon/chess/core/MovementBuilder.html | 445 ++++++++++++++ doc/fr/insalyon/chess/core/MovementType.html | 339 +++++++++++ doc/fr/insalyon/chess/core/Team.html | 414 +++++++++++++ .../chess/core/class-use/AbstractPawn.html | 328 ++++++++++ doc/fr/insalyon/chess/core/class-use/End.html | 195 ++++++ .../chess/core/class-use/Location.html | 470 ++++++++++++++ .../chess/core/class-use/MovementBuilder.html | 122 ++++ .../chess/core/class-use/MovementType.html | 186 ++++++ .../insalyon/chess/core/class-use/Team.html | 413 +++++++++++++ doc/fr/insalyon/chess/core/package-frame.html | 28 + .../insalyon/chess/core/package-summary.html | 171 ++++++ doc/fr/insalyon/chess/core/package-tree.html | 151 +++++ doc/fr/insalyon/chess/core/package-use.html | 267 ++++++++ doc/fr/insalyon/chess/core/pawns/Bishop.html | 354 +++++++++++ doc/fr/insalyon/chess/core/pawns/King.html | 354 +++++++++++ doc/fr/insalyon/chess/core/pawns/Knight.html | 354 +++++++++++ .../insalyon/chess/core/pawns/LittlePawn.html | 354 +++++++++++ doc/fr/insalyon/chess/core/pawns/Queen.html | 354 +++++++++++ doc/fr/insalyon/chess/core/pawns/Rook.html | 354 +++++++++++ .../chess/core/pawns/class-use/Bishop.html | 122 ++++ .../chess/core/pawns/class-use/King.html | 179 ++++++ .../chess/core/pawns/class-use/Knight.html | 122 ++++ .../core/pawns/class-use/LittlePawn.html | 122 ++++ .../chess/core/pawns/class-use/Queen.html | 122 ++++ .../chess/core/pawns/class-use/Rook.html | 122 ++++ .../chess/core/pawns/package-frame.html | 25 + .../chess/core/pawns/package-summary.html | 160 +++++ .../chess/core/pawns/package-tree.html | 144 +++++ .../chess/core/pawns/package-use.html | 155 +++++ .../insalyon/chess/gui/AsyncComputerPlay.html | 396 ++++++++++++ doc/fr/insalyon/chess/gui/DragOverAccept.html | 278 +++++++++ .../insalyon/chess/gui/GameApplication.html | 549 +++++++++++++++++ doc/fr/insalyon/chess/gui/PawnDragEvent.html | 344 +++++++++++ .../insalyon/chess/gui/TakePlaceHandler.html | 353 +++++++++++ .../gui/class-use/AsyncComputerPlay.html | 122 ++++ .../chess/gui/class-use/DragOverAccept.html | 122 ++++ .../chess/gui/class-use/GameApplication.html | 189 ++++++ .../chess/gui/class-use/PawnDragEvent.html | 122 ++++ .../chess/gui/class-use/TakePlaceHandler.html | 122 ++++ doc/fr/insalyon/chess/gui/package-frame.html | 24 + .../insalyon/chess/gui/package-summary.html | 156 +++++ doc/fr/insalyon/chess/gui/package-tree.html | 151 +++++ doc/fr/insalyon/chess/gui/package-use.html | 155 +++++ doc/fr/insalyon/chess/package-frame.html | 21 + doc/fr/insalyon/chess/package-summary.html | 144 +++++ doc/fr/insalyon/chess/package-tree.html | 136 +++++ doc/fr/insalyon/chess/package-use.html | 212 +++++++ doc/help-doc.html | 223 +++++++ doc/index-files/index-1.html | 151 +++++ doc/index-files/index-10.html | 137 +++++ doc/index-files/index-11.html | 145 +++++ doc/index-files/index-12.html | 145 +++++ doc/index-files/index-13.html | 141 +++++ doc/index-files/index-14.html | 137 +++++ doc/index-files/index-15.html | 131 ++++ doc/index-files/index-16.html | 137 +++++ doc/index-files/index-17.html | 145 +++++ doc/index-files/index-18.html | 139 +++++ doc/index-files/index-19.html | 154 +++++ doc/index-files/index-2.html | 145 +++++ doc/index-files/index-20.html | 129 ++++ doc/index-files/index-3.html | 169 ++++++ doc/index-files/index-4.html | 135 ++++ doc/index-files/index-5.html | 139 +++++ doc/index-files/index-6.html | 135 ++++ doc/index-files/index-7.html | 201 ++++++ doc/index-files/index-8.html | 133 ++++ doc/index-files/index-9.html | 139 +++++ doc/index.html | 75 +++ doc/overview-frame.html | 25 + doc/overview-summary.html | 152 +++++ doc/overview-tree.html | 186 ++++++ doc/package-list | 5 + doc/script.js | 30 + doc/serialized-form.html | 150 +++++ doc/stylesheet.css | 574 ++++++++++++++++++ src/fr/insalyon/chess/ai/ChessAI3.java | 25 +- 97 files changed, 19715 insertions(+), 5 deletions(-) create mode 100644 doc/allclasses-frame.html create mode 100644 doc/allclasses-noframe.html create mode 100644 doc/constant-values.html create mode 100644 doc/fr/insalyon/chess/ChessGame.html create mode 100644 doc/fr/insalyon/chess/Game.html create mode 100644 doc/fr/insalyon/chess/ai/ChessAI.html create mode 100644 doc/fr/insalyon/chess/ai/ChessAI2.html create mode 100644 doc/fr/insalyon/chess/ai/ChessAI3.html create mode 100644 doc/fr/insalyon/chess/ai/class-use/ChessAI.html create mode 100644 doc/fr/insalyon/chess/ai/class-use/ChessAI2.html create mode 100644 doc/fr/insalyon/chess/ai/class-use/ChessAI3.html create mode 100644 doc/fr/insalyon/chess/ai/package-frame.html create mode 100644 doc/fr/insalyon/chess/ai/package-summary.html create mode 100644 doc/fr/insalyon/chess/ai/package-tree.html create mode 100644 doc/fr/insalyon/chess/ai/package-use.html create mode 100644 doc/fr/insalyon/chess/class-use/ChessGame.html create mode 100644 doc/fr/insalyon/chess/class-use/Game.html create mode 100644 doc/fr/insalyon/chess/core/AbstractPawn.html create mode 100644 doc/fr/insalyon/chess/core/End.html create mode 100644 doc/fr/insalyon/chess/core/Location.html create mode 100644 doc/fr/insalyon/chess/core/MovementBuilder.html create mode 100644 doc/fr/insalyon/chess/core/MovementType.html create mode 100644 doc/fr/insalyon/chess/core/Team.html create mode 100644 doc/fr/insalyon/chess/core/class-use/AbstractPawn.html create mode 100644 doc/fr/insalyon/chess/core/class-use/End.html create mode 100644 doc/fr/insalyon/chess/core/class-use/Location.html create mode 100644 doc/fr/insalyon/chess/core/class-use/MovementBuilder.html create mode 100644 doc/fr/insalyon/chess/core/class-use/MovementType.html create mode 100644 doc/fr/insalyon/chess/core/class-use/Team.html create mode 100644 doc/fr/insalyon/chess/core/package-frame.html create mode 100644 doc/fr/insalyon/chess/core/package-summary.html create mode 100644 doc/fr/insalyon/chess/core/package-tree.html create mode 100644 doc/fr/insalyon/chess/core/package-use.html create mode 100644 doc/fr/insalyon/chess/core/pawns/Bishop.html create mode 100644 doc/fr/insalyon/chess/core/pawns/King.html create mode 100644 doc/fr/insalyon/chess/core/pawns/Knight.html create mode 100644 doc/fr/insalyon/chess/core/pawns/LittlePawn.html create mode 100644 doc/fr/insalyon/chess/core/pawns/Queen.html create mode 100644 doc/fr/insalyon/chess/core/pawns/Rook.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/Bishop.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/King.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/Knight.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/LittlePawn.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/Queen.html create mode 100644 doc/fr/insalyon/chess/core/pawns/class-use/Rook.html create mode 100644 doc/fr/insalyon/chess/core/pawns/package-frame.html create mode 100644 doc/fr/insalyon/chess/core/pawns/package-summary.html create mode 100644 doc/fr/insalyon/chess/core/pawns/package-tree.html create mode 100644 doc/fr/insalyon/chess/core/pawns/package-use.html create mode 100644 doc/fr/insalyon/chess/gui/AsyncComputerPlay.html create mode 100644 doc/fr/insalyon/chess/gui/DragOverAccept.html create mode 100644 doc/fr/insalyon/chess/gui/GameApplication.html create mode 100644 doc/fr/insalyon/chess/gui/PawnDragEvent.html create mode 100644 doc/fr/insalyon/chess/gui/TakePlaceHandler.html create mode 100644 doc/fr/insalyon/chess/gui/class-use/AsyncComputerPlay.html create mode 100644 doc/fr/insalyon/chess/gui/class-use/DragOverAccept.html create mode 100644 doc/fr/insalyon/chess/gui/class-use/GameApplication.html create mode 100644 doc/fr/insalyon/chess/gui/class-use/PawnDragEvent.html create mode 100644 doc/fr/insalyon/chess/gui/class-use/TakePlaceHandler.html create mode 100644 doc/fr/insalyon/chess/gui/package-frame.html create mode 100644 doc/fr/insalyon/chess/gui/package-summary.html create mode 100644 doc/fr/insalyon/chess/gui/package-tree.html create mode 100644 doc/fr/insalyon/chess/gui/package-use.html create mode 100644 doc/fr/insalyon/chess/package-frame.html create mode 100644 doc/fr/insalyon/chess/package-summary.html create mode 100644 doc/fr/insalyon/chess/package-tree.html create mode 100644 doc/fr/insalyon/chess/package-use.html create mode 100644 doc/help-doc.html create mode 100644 doc/index-files/index-1.html create mode 100644 doc/index-files/index-10.html create mode 100644 doc/index-files/index-11.html create mode 100644 doc/index-files/index-12.html create mode 100644 doc/index-files/index-13.html create mode 100644 doc/index-files/index-14.html create mode 100644 doc/index-files/index-15.html create mode 100644 doc/index-files/index-16.html create mode 100644 doc/index-files/index-17.html create mode 100644 doc/index-files/index-18.html create mode 100644 doc/index-files/index-19.html create mode 100644 doc/index-files/index-2.html create mode 100644 doc/index-files/index-20.html create mode 100644 doc/index-files/index-3.html create mode 100644 doc/index-files/index-4.html create mode 100644 doc/index-files/index-5.html create mode 100644 doc/index-files/index-6.html create mode 100644 doc/index-files/index-7.html create mode 100644 doc/index-files/index-8.html create mode 100644 doc/index-files/index-9.html create mode 100644 doc/index.html create mode 100644 doc/overview-frame.html create mode 100644 doc/overview-summary.html create mode 100644 doc/overview-tree.html create mode 100644 doc/package-list create mode 100644 doc/script.js create mode 100644 doc/serialized-form.html create mode 100644 doc/stylesheet.css diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..60f5df3 --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,40 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html new file mode 100644 index 0000000..2891b2a --- /dev/null +++ b/doc/allclasses-noframe.html @@ -0,0 +1,40 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/constant-values.html b/doc/constant-values.html new file mode 100644 index 0000000..acf27c0 --- /dev/null +++ b/doc/constant-values.html @@ -0,0 +1,274 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + + + + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

fr.insalyon.*

+ + +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ChessGame.html b/doc/fr/insalyon/chess/ChessGame.html new file mode 100644 index 0000000..ef5bf82 --- /dev/null +++ b/doc/fr/insalyon/chess/ChessGame.html @@ -0,0 +1,269 @@ + + + + + +ChessGame + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess
+

Class ChessGame

+
+
+ +
+
    +
  • +
    +
    +
    public class ChessGame
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ChessGame() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static voidmain(java.lang.String... args) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChessGame

        +
        public ChessGame()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        main

        +
        public static void main(java.lang.String... args)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/Game.html b/doc/fr/insalyon/chess/Game.html new file mode 100644 index 0000000..35a2f7d --- /dev/null +++ b/doc/fr/insalyon/chess/Game.html @@ -0,0 +1,497 @@ + + + + + +Game + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess
+

Class Game

+
+
+ +
+
    +
  • +
    +
    +
    public class Game
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        blackKing

        +
        private King blackKing
        +
      • +
      + + + + + + + +
        +
      • +

        currentPlayer

        +
        private int currentPlayer
        +
      • +
      + + + +
        +
      • +

        whiteKing

        +
        private King whiteKing
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Game

        +
        public Game()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        check

        +
        public boolean check(Team team)
        +
        The king is in threat ?
        +
        +
        Parameters:
        +
        team -
        +
        Returns:
        +
        +
      • +
      + + + +
        +
      • +

        display

        +
        public void display()
        +
      • +
      + + + +
        +
      • +

        gameOver

        +
        public End gameOver(Team team)
        +
        Game ending state for a team
        +
        +
        Parameters:
        +
        team -
        +
        Returns:
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getCurrentPlayer

        +
        public Team getCurrentPlayer()
        +
      • +
      + + + +
        +
      • +

        getKing

        +
        public King getKing(Team team)
        +
      • +
      + + + + + + + +
        +
      • +

        init

        +
        public void init()
        +
        Initialize the board by default
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        rotatePlayer

        +
        public void rotatePlayer()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/ChessAI.html b/doc/fr/insalyon/chess/ai/ChessAI.html new file mode 100644 index 0000000..bbe8457 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/ChessAI.html @@ -0,0 +1,348 @@ + + + + + +ChessAI + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.ai
+

Class ChessAI

+
+
+ +
+
    +
  • +
    +
    +
    public class ChessAI
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        allTargetedLocations

        +
        private Location[] allTargetedLocations
        +
      • +
      + + + +
        +
      • +

        enemyPieces

        +
        private int enemyPieces
        +
      • +
      + + + +
        +
      • +

        leastKingMovs

        +
        private int leastKingMovs
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChessAI

        +
        public ChessAI()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        makePlay

        +
        public void makePlay(Game game,
        +                     Team team)
        +
      • +
      + + + +
        +
      • +

        setupVariables

        +
        private void setupVariables(Game game,
        +                            Team team)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/ChessAI2.html b/doc/fr/insalyon/chess/ai/ChessAI2.html new file mode 100644 index 0000000..58e539a --- /dev/null +++ b/doc/fr/insalyon/chess/ai/ChessAI2.html @@ -0,0 +1,397 @@ + + + + + +ChessAI2 + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.ai
+

Class ChessAI2

+
+
+ +
+
    +
  • +
    +
    +
    public class ChessAI2
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        allTargetedLocations

        +
        private Location[] allTargetedLocations
        +
      • +
      + + + +
        +
      • +

        enemyPieces

        +
        private int enemyPieces
        +
      • +
      + + + +
        +
      • +

        pieces

        +
        private int pieces
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChessAI2

        +
        public ChessAI2()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evalState

        +
        public int evalState(AbstractPawn[][] board,
        +                     Team team)
        +
      • +
      + + + +
        +
      • +

        max

        +
        private int max(Game game,
        +                Team team,
        +                int depth)
        +
      • +
      + + + +
        +
      • +

        min

        +
        private int min(Game game,
        +                Team team,
        +                int depth)
        +
      • +
      + + + +
        +
      • +

        play

        +
        public void play(Game game,
        +                 Team team)
        +
      • +
      + + + +
        +
      • +

        setupVariables

        +
        private void setupVariables(Game game,
        +                            Team team)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/ChessAI3.html b/doc/fr/insalyon/chess/ai/ChessAI3.html new file mode 100644 index 0000000..b7cdb04 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/ChessAI3.html @@ -0,0 +1,358 @@ + + + + + +ChessAI3 + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.ai
+

Class ChessAI3

+
+
+ +
+
    +
  • +
    +
    +
    public class ChessAI3
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      (package private) intb 
      (package private) intcases 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ChessAI3() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intevalState(Game game, + Team team) 
      private intminiMax(Game game, + Team team, + int depth, + int alpha, + int beta, + boolean maximize) 
      voidplay(Game game, + Team team) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        b

        +
        int b
        +
      • +
      + + + +
        +
      • +

        cases

        +
        int cases
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ChessAI3

        +
        public ChessAI3()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        evalState

        +
        public int evalState(Game game,
        +                     Team team)
        +
      • +
      + + + +
        +
      • +

        miniMax

        +
        private int miniMax(Game game,
        +                    Team team,
        +                    int depth,
        +                    int alpha,
        +                    int beta,
        +                    boolean maximize)
        +
      • +
      + + + +
        +
      • +

        play

        +
        public void play(Game game,
        +                 Team team)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/class-use/ChessAI.html b/doc/fr/insalyon/chess/ai/class-use/ChessAI.html new file mode 100644 index 0000000..b83d426 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/class-use/ChessAI.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.ai.ChessAI + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.ai.ChessAI

+
+
No usage of fr.insalyon.chess.ai.ChessAI
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/class-use/ChessAI2.html b/doc/fr/insalyon/chess/ai/class-use/ChessAI2.html new file mode 100644 index 0000000..d11b9ab --- /dev/null +++ b/doc/fr/insalyon/chess/ai/class-use/ChessAI2.html @@ -0,0 +1,162 @@ + + + + + +Uses of Class fr.insalyon.chess.ai.ChessAI2 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.ai.ChessAI2

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/class-use/ChessAI3.html b/doc/fr/insalyon/chess/ai/class-use/ChessAI3.html new file mode 100644 index 0000000..8eab8bb --- /dev/null +++ b/doc/fr/insalyon/chess/ai/class-use/ChessAI3.html @@ -0,0 +1,162 @@ + + + + + +Uses of Class fr.insalyon.chess.ai.ChessAI3 + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.ai.ChessAI3

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/package-frame.html b/doc/fr/insalyon/chess/ai/package-frame.html new file mode 100644 index 0000000..5e7d1d8 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/package-frame.html @@ -0,0 +1,22 @@ + + + + + +fr.insalyon.chess.ai + + + + + +

fr.insalyon.chess.ai

+
+

Classes

+ +
+ + diff --git a/doc/fr/insalyon/chess/ai/package-summary.html b/doc/fr/insalyon/chess/ai/package-summary.html new file mode 100644 index 0000000..c460537 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/package-summary.html @@ -0,0 +1,148 @@ + + + + + +fr.insalyon.chess.ai + + + + + + + + +
+ + + + + + + +
+ + +
+

Package fr.insalyon.chess.ai

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/package-tree.html b/doc/fr/insalyon/chess/ai/package-tree.html new file mode 100644 index 0000000..749c4e8 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/package-tree.html @@ -0,0 +1,137 @@ + + + + + +fr.insalyon.chess.ai Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package fr.insalyon.chess.ai

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/ai/package-use.html b/doc/fr/insalyon/chess/ai/package-use.html new file mode 100644 index 0000000..8b82548 --- /dev/null +++ b/doc/fr/insalyon/chess/ai/package-use.html @@ -0,0 +1,158 @@ + + + + + +Uses of Package fr.insalyon.chess.ai + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
fr.insalyon.chess.ai

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/class-use/ChessGame.html b/doc/fr/insalyon/chess/class-use/ChessGame.html new file mode 100644 index 0000000..cb1f017 --- /dev/null +++ b/doc/fr/insalyon/chess/class-use/ChessGame.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.ChessGame + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.ChessGame

+
+
No usage of fr.insalyon.chess.ChessGame
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/class-use/Game.html b/doc/fr/insalyon/chess/class-use/Game.html new file mode 100644 index 0000000..e5a3fa1 --- /dev/null +++ b/doc/fr/insalyon/chess/class-use/Game.html @@ -0,0 +1,349 @@ + + + + + +Uses of Class fr.insalyon.chess.Game + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.Game

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/AbstractPawn.html b/doc/fr/insalyon/chess/core/AbstractPawn.html new file mode 100644 index 0000000..415c83f --- /dev/null +++ b/doc/fr/insalyon/chess/core/AbstractPawn.html @@ -0,0 +1,439 @@ + + + + + +AbstractPawn + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Class AbstractPawn

+
+
+ +
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected Locationlocation 
      protected java.lang.Stringname 
      protected Teamteam 
      protected intvalue 
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      AbstractPawn() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethod and Description
      LocationgetLocation() +
      Get the current location of the pawn
      +
      abstract Location[]getMovement(Game game, + Location location, + boolean check) +
      Get the locations to which the pawn can move from the given location
      +
      java.lang.StringgetName() +
      Get the name of the pawn
      +
      TeamgetTeam() +
      Get the team of the pawn
      +
      intgetValue() +
      Get the value of the pawn
      +
      voidsetLocation(Location location) +
      Set a new location for the pawn
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        location

        +
        protected Location location
        +
      • +
      + + + +
        +
      • +

        name

        +
        protected java.lang.String name
        +
      • +
      + + + +
        +
      • +

        team

        +
        protected Team team
        +
      • +
      + + + +
        +
      • +

        value

        +
        protected int value
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AbstractPawn

        +
        public AbstractPawn()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getLocation

        +
        public Location getLocation()
        +
        Get the current location of the pawn
        +
      • +
      + + + +
        +
      • +

        getMovement

        +
        public abstract Location[] getMovement(Game game,
        +                                       Location location,
        +                                       boolean check)
        +
        Get the locations to which the pawn can move from the given location
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
        Get the name of the pawn
        +
      • +
      + + + +
        +
      • +

        getTeam

        +
        public Team getTeam()
        +
        Get the team of the pawn
        +
      • +
      + + + +
        +
      • +

        getValue

        +
        public int getValue()
        +
        Get the value of the pawn
        +
      • +
      + + + +
        +
      • +

        setLocation

        +
        public void setLocation(Location location)
        +
        Set a new location for the pawn
        +
        +
        Parameters:
        +
        location -
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/End.html b/doc/fr/insalyon/chess/core/End.html new file mode 100644 index 0000000..d2f3edc --- /dev/null +++ b/doc/fr/insalyon/chess/core/End.html @@ -0,0 +1,351 @@ + + + + + +End + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Enum End

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<End>
    +
    +
    +
    +
    public enum End
    +extends java.lang.Enum<End>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      CHECKMATE 
      NONE 
      PAT 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static EndvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static End[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        CHECKMATE

        +
        public static final End CHECKMATE
        +
      • +
      + + + +
        +
      • +

        NONE

        +
        public static final End NONE
        +
      • +
      + + + +
        +
      • +

        PAT

        +
        public static final End PAT
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        valueOf

        +
        public static End valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        values

        +
        public static End[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (End c : End.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/Location.html b/doc/fr/insalyon/chess/core/Location.html new file mode 100644 index 0000000..ae70141 --- /dev/null +++ b/doc/fr/insalyon/chess/core/Location.html @@ -0,0 +1,471 @@ + + + + + +Location + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Class Location

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable
    +
    +
    +
    +
    public class Location
    +extends java.lang.Object
    +implements java.io.Serializable
    +
    +
    See Also:
    +
    Serialized Form
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        col

        +
        private int col
        +
      • +
      + + + +
        +
      • +

        row

        +
        private int row
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Location

        +
        public Location(int row,
        +                int col)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        add

        +
        public Location add(int row,
        +                    int col)
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        equals

        +
        public boolean equals(Location location)
        +
      • +
      + + + +
        +
      • +

        getCol

        +
        public int getCol()
        +
      • +
      + + + +
        +
      • +

        getRow

        +
        public int getRow()
        +
      • +
      + + + +
        +
      • +

        isInside

        +
        public boolean isInside(java.lang.Object[][] array)
        +
      • +
      + + + +
        +
      • +

        locationArrayContains

        +
        public static boolean locationArrayContains(Location[] array,
        +                                            Location location)
        +
      • +
      + + + +
        +
      • +

        setCol

        +
        public void setCol(int col)
        +
      • +
      + + + +
        +
      • +

        setRow

        +
        public void setRow(int row)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        Overrides:
        +
        toString in class java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/MovementBuilder.html b/doc/fr/insalyon/chess/core/MovementBuilder.html new file mode 100644 index 0000000..adac530 --- /dev/null +++ b/doc/fr/insalyon/chess/core/MovementBuilder.html @@ -0,0 +1,445 @@ + + + + + +MovementBuilder + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Class MovementBuilder

+
+
+ +
+
    +
  • +
    +
    +
    public class MovementBuilder
    +extends java.lang.Object
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        check

        +
        private boolean check
        +
      • +
      + + + +
        +
      • +

        collide

        +
        private boolean collide
        +
      • +
      + + + +
        +
      • +

        game

        +
        private Game game
        +
      • +
      + + + +
        +
      • +

        locations

        +
        private Location[] locations
        +
      • +
      + + + +
        +
      • +

        team

        +
        private Team team
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        MovementBuilder

        +
        public MovementBuilder(Game game,
        +                       boolean check)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/MovementType.html b/doc/fr/insalyon/chess/core/MovementType.html new file mode 100644 index 0000000..d8e59fa --- /dev/null +++ b/doc/fr/insalyon/chess/core/MovementType.html @@ -0,0 +1,339 @@ + + + + + +MovementType + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Enum MovementType

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<MovementType>
    +
    +
    +
    +
    public enum MovementType
    +extends java.lang.Enum<MovementType>
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethod and Description
      static MovementTypevalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static MovementType[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        LINE_OR_DIAGONAL

        +
        public static final MovementType LINE_OR_DIAGONAL
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        valueOf

        +
        public static MovementType valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        values

        +
        public static MovementType[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (MovementType c : MovementType.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/Team.html b/doc/fr/insalyon/chess/core/Team.html new file mode 100644 index 0000000..e1d7c18 --- /dev/null +++ b/doc/fr/insalyon/chess/core/Team.html @@ -0,0 +1,414 @@ + + + + + +Team + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core
+

Enum Team

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Serializable, java.lang.Comparable<Team>
    +
    +
    +
    +
    public enum Team
    +extends java.lang.Enum<Team>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Summary

      + + + + + + + + + + + +
      Enum Constants 
      Enum Constant and Description
      BLACK 
      WHITE 
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private intid 
      private java.lang.Stringname 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      intgetId() 
      java.lang.StringgetName() 
      static TeamvalueOf(java.lang.String name) +
      Returns the enum constant of this type with the specified name.
      +
      static Team[]values() +
      Returns an array containing the constants of this enum type, in +the order they are declared.
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Enum

        +clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Enum Constant Detail

      + + + +
        +
      • +

        BLACK

        +
        public static final Team BLACK
        +
      • +
      + + + +
        +
      • +

        WHITE

        +
        public static final Team WHITE
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        id

        +
        private int id
        +
      • +
      + + + +
        +
      • +

        name

        +
        private java.lang.String name
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getId

        +
        public int getId()
        +
      • +
      + + + +
        +
      • +

        getName

        +
        public java.lang.String getName()
        +
      • +
      + + + +
        +
      • +

        valueOf

        +
        public static Team valueOf(java.lang.String name)
        +
        Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        +
        java.lang.NullPointerException - if the argument is null
        +
        +
      • +
      + + + +
        +
      • +

        values

        +
        public static Team[] values()
        +
        Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
        +for (Team c : Team.values())
        +    System.out.println(c);
        +
        +
        +
        Returns:
        +
        an array containing the constants of this enum type, in the order they are declared
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/AbstractPawn.html b/doc/fr/insalyon/chess/core/class-use/AbstractPawn.html new file mode 100644 index 0000000..3283ee9 --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/AbstractPawn.html @@ -0,0 +1,328 @@ + + + + + +Uses of Class fr.insalyon.chess.core.AbstractPawn + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.AbstractPawn

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/End.html b/doc/fr/insalyon/chess/core/class-use/End.html new file mode 100644 index 0000000..2482400 --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/End.html @@ -0,0 +1,195 @@ + + + + + +Uses of Class fr.insalyon.chess.core.End + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.End

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/Location.html b/doc/fr/insalyon/chess/core/class-use/Location.html new file mode 100644 index 0000000..5810457 --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/Location.html @@ -0,0 +1,470 @@ + + + + + +Uses of Class fr.insalyon.chess.core.Location + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.Location

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/MovementBuilder.html b/doc/fr/insalyon/chess/core/class-use/MovementBuilder.html new file mode 100644 index 0000000..ac0aa72 --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/MovementBuilder.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.MovementBuilder + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.MovementBuilder

+
+
No usage of fr.insalyon.chess.core.MovementBuilder
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/MovementType.html b/doc/fr/insalyon/chess/core/class-use/MovementType.html new file mode 100644 index 0000000..b3ad6c8 --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/MovementType.html @@ -0,0 +1,186 @@ + + + + + +Uses of Class fr.insalyon.chess.core.MovementType + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.MovementType

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/class-use/Team.html b/doc/fr/insalyon/chess/core/class-use/Team.html new file mode 100644 index 0000000..e60a77d --- /dev/null +++ b/doc/fr/insalyon/chess/core/class-use/Team.html @@ -0,0 +1,413 @@ + + + + + +Uses of Class fr.insalyon.chess.core.Team + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.Team

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/package-frame.html b/doc/fr/insalyon/chess/core/package-frame.html new file mode 100644 index 0000000..49df5d5 --- /dev/null +++ b/doc/fr/insalyon/chess/core/package-frame.html @@ -0,0 +1,28 @@ + + + + + +fr.insalyon.chess.core + + + + + +

fr.insalyon.chess.core

+
+

Classes

+ +

Enums

+ +
+ + diff --git a/doc/fr/insalyon/chess/core/package-summary.html b/doc/fr/insalyon/chess/core/package-summary.html new file mode 100644 index 0000000..dfeeca9 --- /dev/null +++ b/doc/fr/insalyon/chess/core/package-summary.html @@ -0,0 +1,171 @@ + + + + + +fr.insalyon.chess.core + + + + + + + + +
+ + + + + + + +
+ + +
+

Package fr.insalyon.chess.core

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/package-tree.html b/doc/fr/insalyon/chess/core/package-tree.html new file mode 100644 index 0000000..391ecd8 --- /dev/null +++ b/doc/fr/insalyon/chess/core/package-tree.html @@ -0,0 +1,151 @@ + + + + + +fr.insalyon.chess.core Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package fr.insalyon.chess.core

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/package-use.html b/doc/fr/insalyon/chess/core/package-use.html new file mode 100644 index 0000000..a96e5fa --- /dev/null +++ b/doc/fr/insalyon/chess/core/package-use.html @@ -0,0 +1,267 @@ + + + + + +Uses of Package fr.insalyon.chess.core + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
fr.insalyon.chess.core

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/Bishop.html b/doc/fr/insalyon/chess/core/pawns/Bishop.html new file mode 100644 index 0000000..79f419e --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/Bishop.html @@ -0,0 +1,354 @@ + + + + + +Bishop + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class Bishop

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/King.html b/doc/fr/insalyon/chess/core/pawns/King.html new file mode 100644 index 0000000..7bbe463 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/King.html @@ -0,0 +1,354 @@ + + + + + +King + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class King

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/Knight.html b/doc/fr/insalyon/chess/core/pawns/Knight.html new file mode 100644 index 0000000..311620c --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/Knight.html @@ -0,0 +1,354 @@ + + + + + +Knight + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class Knight

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/LittlePawn.html b/doc/fr/insalyon/chess/core/pawns/LittlePawn.html new file mode 100644 index 0000000..64a760e --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/LittlePawn.html @@ -0,0 +1,354 @@ + + + + + +LittlePawn + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class LittlePawn

+
+
+ +
+ +
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        LittlePawn

        +
        public LittlePawn(Team team)
        +
      • +
      + + + +
        +
      • +

        LittlePawn

        +
        public LittlePawn(Team team,
        +                  Location location)
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/Queen.html b/doc/fr/insalyon/chess/core/pawns/Queen.html new file mode 100644 index 0000000..b0dbab2 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/Queen.html @@ -0,0 +1,354 @@ + + + + + +Queen + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class Queen

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/Rook.html b/doc/fr/insalyon/chess/core/pawns/Rook.html new file mode 100644 index 0000000..109c7e0 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/Rook.html @@ -0,0 +1,354 @@ + + + + + +Rook + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.core.pawns
+

Class Rook

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/Bishop.html b/doc/fr/insalyon/chess/core/pawns/class-use/Bishop.html new file mode 100644 index 0000000..764966e --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/Bishop.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.Bishop + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.Bishop

+
+
No usage of fr.insalyon.chess.core.pawns.Bishop
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/King.html b/doc/fr/insalyon/chess/core/pawns/class-use/King.html new file mode 100644 index 0000000..0882710 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/King.html @@ -0,0 +1,179 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.King + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.King

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/Knight.html b/doc/fr/insalyon/chess/core/pawns/class-use/Knight.html new file mode 100644 index 0000000..1c769fd --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/Knight.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.Knight + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.Knight

+
+
No usage of fr.insalyon.chess.core.pawns.Knight
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/LittlePawn.html b/doc/fr/insalyon/chess/core/pawns/class-use/LittlePawn.html new file mode 100644 index 0000000..58451b3 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/LittlePawn.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.LittlePawn + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.LittlePawn

+
+
No usage of fr.insalyon.chess.core.pawns.LittlePawn
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/Queen.html b/doc/fr/insalyon/chess/core/pawns/class-use/Queen.html new file mode 100644 index 0000000..42339cb --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/Queen.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.Queen + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.Queen

+
+
No usage of fr.insalyon.chess.core.pawns.Queen
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/class-use/Rook.html b/doc/fr/insalyon/chess/core/pawns/class-use/Rook.html new file mode 100644 index 0000000..6169fa8 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/class-use/Rook.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.core.pawns.Rook + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.core.pawns.Rook

+
+
No usage of fr.insalyon.chess.core.pawns.Rook
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/package-frame.html b/doc/fr/insalyon/chess/core/pawns/package-frame.html new file mode 100644 index 0000000..50c4eb3 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/package-frame.html @@ -0,0 +1,25 @@ + + + + + +fr.insalyon.chess.core.pawns + + + + + +

fr.insalyon.chess.core.pawns

+
+

Classes

+ +
+ + diff --git a/doc/fr/insalyon/chess/core/pawns/package-summary.html b/doc/fr/insalyon/chess/core/pawns/package-summary.html new file mode 100644 index 0000000..b03c4f2 --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/package-summary.html @@ -0,0 +1,160 @@ + + + + + +fr.insalyon.chess.core.pawns + + + + + + + + +
+ + + + + + + +
+ + +
+

Package fr.insalyon.chess.core.pawns

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/package-tree.html b/doc/fr/insalyon/chess/core/pawns/package-tree.html new file mode 100644 index 0000000..20ba7df --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/package-tree.html @@ -0,0 +1,144 @@ + + + + + +fr.insalyon.chess.core.pawns Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package fr.insalyon.chess.core.pawns

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/core/pawns/package-use.html b/doc/fr/insalyon/chess/core/pawns/package-use.html new file mode 100644 index 0000000..ad2983a --- /dev/null +++ b/doc/fr/insalyon/chess/core/pawns/package-use.html @@ -0,0 +1,155 @@ + + + + + +Uses of Package fr.insalyon.chess.core.pawns + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
fr.insalyon.chess.core.pawns

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/AsyncComputerPlay.html b/doc/fr/insalyon/chess/gui/AsyncComputerPlay.html new file mode 100644 index 0000000..fbf0219 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/AsyncComputerPlay.html @@ -0,0 +1,396 @@ + + + + + +AsyncComputerPlay + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.gui
+

Class AsyncComputerPlay

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable, java.util.concurrent.Future<java.lang.Object>, java.util.concurrent.RunnableFuture<java.lang.Object>, javafx.concurrent.Worker<java.lang.Object>, javafx.event.EventTarget
    +
    +
    +
    +
    public class AsyncComputerPlay
    +extends javafx.concurrent.Task<java.lang.Object>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Property Summary

      +
        +
      • + + +

        Properties inherited from class javafx.concurrent.Task

        +exceptionProperty, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, runningProperty, stateProperty, titleProperty, totalWorkProperty, valueProperty, workDoneProperty
      • +
      +
    • +
    + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from interface javafx.concurrent.Worker

        +javafx.concurrent.Worker.State
      • +
      +
    • +
    + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected java.lang.Objectcall() 
      voidcomputerPlay(Team team) 
      +
        +
      • + + +

        Methods inherited from class javafx.concurrent.Task

        +addEventFilter, addEventHandler, buildEventDispatchChain, cancel, cancel, cancelled, exceptionProperty, failed, fireEvent, getException, getMessage, getOnCancelled, getOnFailed, getOnRunning, getOnScheduled, getOnSucceeded, getProgress, getState, getTitle, getTotalWork, getValue, getWorkDone, isRunning, messageProperty, onCancelledProperty, onFailedProperty, onRunningProperty, onScheduledProperty, onSucceededProperty, progressProperty, removeEventFilter, removeEventHandler, running, runningProperty, scheduled, setEventHandler, setOnCancelled, setOnFailed, setOnRunning, setOnScheduled, setOnSucceeded, stateProperty, succeeded, titleProperty, totalWorkProperty, updateMessage, updateProgress, updateProgress, updateTitle, updateValue, valueProperty, workDoneProperty
      • +
      +
        +
      • + + +

        Methods inherited from class java.util.concurrent.FutureTask

        +done, get, get, isCancelled, isDone, run, runAndReset, set, setException
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        AsyncComputerPlay

        +
        public AsyncComputerPlay(GameApplication gameApplication)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        call

        +
        protected java.lang.Object call()
        +                         throws java.lang.Exception
        +
        +
        Specified by:
        +
        call in class javafx.concurrent.Task<java.lang.Object>
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      + + + +
        +
      • +

        computerPlay

        +
        public void computerPlay(Team team)
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/DragOverAccept.html b/doc/fr/insalyon/chess/gui/DragOverAccept.html new file mode 100644 index 0000000..ca0a228 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/DragOverAccept.html @@ -0,0 +1,278 @@ + + + + + +DragOverAccept + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.gui
+

Class DragOverAccept

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.EventListener, javafx.event.EventHandler<javafx.scene.input.DragEvent>
    +
    +
    +
    +
    public class DragOverAccept
    +extends java.lang.Object
    +implements javafx.event.EventHandler<javafx.scene.input.DragEvent>
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      DragOverAccept() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidhandle(javafx.scene.input.DragEvent event) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        DragOverAccept

        +
        public DragOverAccept()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        handle

        +
        public void handle(javafx.scene.input.DragEvent event)
        +
        +
        Specified by:
        +
        handle in interface javafx.event.EventHandler<javafx.scene.input.DragEvent>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/GameApplication.html b/doc/fr/insalyon/chess/gui/GameApplication.html new file mode 100644 index 0000000..a68bf62 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/GameApplication.html @@ -0,0 +1,549 @@ + + + + + +GameApplication + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.gui
+

Class GameApplication

+
+
+ +
+
    +
  • +
    +
    +
    public class GameApplication
    +extends javafx.application.Application
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Nested Class Summary

      +
        +
      • + + +

        Nested classes/interfaces inherited from class javafx.application.Application

        +javafx.application.Application.Parameters
      • +
      +
    • +
    + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private javafx.scene.layout.GridPaneboardGrid 
      private javafx.scene.SceneboardScene 
      private booleancomputerTurn 
      private Gamegame 
      static intHEIGHT 
      private javafx.scene.input.DataFormatlocationFormat 
      static intWIDTH 
      +
        +
      • + + +

        Fields inherited from class javafx.application.Application

        +STYLESHEET_CASPIAN, STYLESHEET_MODENA
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      GameApplication() 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      private javafx.scene.image.ImageViewcreatePawnNode(AbstractPawn pawn) 
      voiddrawBoard() 
      voiddrawPieces() 
      javafx.scene.layout.GridPanegetBoardGrid() 
      GamegetGame() 
      javafx.scene.input.DataFormatgetLocationFormat() 
      booleanisComputerTurn() 
      voidrefresh() 
      voidsetComputerTurn(boolean computerTurn) 
      voidstart(javafx.stage.Stage primaryStage) 
      +
        +
      • + + +

        Methods inherited from class javafx.application.Application

        +getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
      • +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        boardGrid

        +
        private javafx.scene.layout.GridPane boardGrid
        +
      • +
      + + + +
        +
      • +

        boardScene

        +
        private javafx.scene.Scene boardScene
        +
      • +
      + + + +
        +
      • +

        computerTurn

        +
        private boolean computerTurn
        +
      • +
      + + + +
        +
      • +

        game

        +
        private Game game
        +
      • +
      + + + + + + + +
        +
      • +

        locationFormat

        +
        private javafx.scene.input.DataFormat locationFormat
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        GameApplication

        +
        public GameApplication()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        createPawnNode

        +
        private javafx.scene.image.ImageView createPawnNode(AbstractPawn pawn)
        +
      • +
      + + + +
        +
      • +

        drawBoard

        +
        public void drawBoard()
        +
      • +
      + + + +
        +
      • +

        drawPieces

        +
        public void drawPieces()
        +
      • +
      + + + +
        +
      • +

        getBoardGrid

        +
        public javafx.scene.layout.GridPane getBoardGrid()
        +
      • +
      + + + +
        +
      • +

        getGame

        +
        public Game getGame()
        +
      • +
      + + + +
        +
      • +

        getLocationFormat

        +
        public javafx.scene.input.DataFormat getLocationFormat()
        +
      • +
      + + + +
        +
      • +

        isComputerTurn

        +
        public boolean isComputerTurn()
        +
      • +
      + + + +
        +
      • +

        refresh

        +
        public void refresh()
        +
      • +
      + + + +
        +
      • +

        setComputerTurn

        +
        public void setComputerTurn(boolean computerTurn)
        +
      • +
      + + + +
        +
      • +

        start

        +
        public void start(javafx.stage.Stage primaryStage)
        +           throws java.lang.Exception
        +
        +
        Specified by:
        +
        start in class javafx.application.Application
        +
        Throws:
        +
        java.lang.Exception
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/PawnDragEvent.html b/doc/fr/insalyon/chess/gui/PawnDragEvent.html new file mode 100644 index 0000000..c0149e9 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/PawnDragEvent.html @@ -0,0 +1,344 @@ + + + + + +PawnDragEvent + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.gui
+

Class PawnDragEvent

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.EventListener, javafx.event.EventHandler<javafx.scene.input.MouseEvent>
    +
    +
    +
    +
    public class PawnDragEvent
    +extends java.lang.Object
    +implements javafx.event.EventHandler<javafx.scene.input.MouseEvent>
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidhandle(javafx.scene.input.MouseEvent event) 
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + + + + + +
        +
      • +

        imageView

        +
        private javafx.scene.image.ImageView imageView
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PawnDragEvent

        +
        public PawnDragEvent(AbstractPawn pawn,
        +                     javafx.scene.image.ImageView imageView,
        +                     GameApplication gameApplication)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        handle

        +
        public void handle(javafx.scene.input.MouseEvent event)
        +
        +
        Specified by:
        +
        handle in interface javafx.event.EventHandler<javafx.scene.input.MouseEvent>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/TakePlaceHandler.html b/doc/fr/insalyon/chess/gui/TakePlaceHandler.html new file mode 100644 index 0000000..6d872da --- /dev/null +++ b/doc/fr/insalyon/chess/gui/TakePlaceHandler.html @@ -0,0 +1,353 @@ + + + + + +TakePlaceHandler + + + + + + + + +
+ + + + + + + +
+ + + +
+
fr.insalyon.chess.gui
+

Class TakePlaceHandler

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.util.EventListener, javafx.event.EventHandler<javafx.scene.input.DragEvent>
    +
    +
    +
    +
    public class TakePlaceHandler
    +extends java.lang.Object
    +implements javafx.event.EventHandler<javafx.scene.input.DragEvent>
    +
  • +
+
+
+ +
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        TakePlaceHandler

        +
        public TakePlaceHandler(GameApplication gameApplication)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        checkOver

        +
        public boolean checkOver()
        +
      • +
      + + + +
        +
      • +

        computerPlay

        +
        public void computerPlay(Team team)
        +
      • +
      + + + +
        +
      • +

        handle

        +
        public void handle(javafx.scene.input.DragEvent event)
        +
        +
        Specified by:
        +
        handle in interface javafx.event.EventHandler<javafx.scene.input.DragEvent>
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/class-use/AsyncComputerPlay.html b/doc/fr/insalyon/chess/gui/class-use/AsyncComputerPlay.html new file mode 100644 index 0000000..e1aad5e --- /dev/null +++ b/doc/fr/insalyon/chess/gui/class-use/AsyncComputerPlay.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.gui.AsyncComputerPlay + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.gui.AsyncComputerPlay

+
+
No usage of fr.insalyon.chess.gui.AsyncComputerPlay
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/class-use/DragOverAccept.html b/doc/fr/insalyon/chess/gui/class-use/DragOverAccept.html new file mode 100644 index 0000000..6939ef2 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/class-use/DragOverAccept.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.gui.DragOverAccept + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.gui.DragOverAccept

+
+
No usage of fr.insalyon.chess.gui.DragOverAccept
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/class-use/GameApplication.html b/doc/fr/insalyon/chess/gui/class-use/GameApplication.html new file mode 100644 index 0000000..10ce7db --- /dev/null +++ b/doc/fr/insalyon/chess/gui/class-use/GameApplication.html @@ -0,0 +1,189 @@ + + + + + +Uses of Class fr.insalyon.chess.gui.GameApplication + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.gui.GameApplication

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/class-use/PawnDragEvent.html b/doc/fr/insalyon/chess/gui/class-use/PawnDragEvent.html new file mode 100644 index 0000000..c1b6e83 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/class-use/PawnDragEvent.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.gui.PawnDragEvent + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.gui.PawnDragEvent

+
+
No usage of fr.insalyon.chess.gui.PawnDragEvent
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/class-use/TakePlaceHandler.html b/doc/fr/insalyon/chess/gui/class-use/TakePlaceHandler.html new file mode 100644 index 0000000..0a6b1cc --- /dev/null +++ b/doc/fr/insalyon/chess/gui/class-use/TakePlaceHandler.html @@ -0,0 +1,122 @@ + + + + + +Uses of Class fr.insalyon.chess.gui.TakePlaceHandler + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Class
fr.insalyon.chess.gui.TakePlaceHandler

+
+
No usage of fr.insalyon.chess.gui.TakePlaceHandler
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/package-frame.html b/doc/fr/insalyon/chess/gui/package-frame.html new file mode 100644 index 0000000..157d6a9 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/package-frame.html @@ -0,0 +1,24 @@ + + + + + +fr.insalyon.chess.gui + + + + + +

fr.insalyon.chess.gui

+
+

Classes

+ +
+ + diff --git a/doc/fr/insalyon/chess/gui/package-summary.html b/doc/fr/insalyon/chess/gui/package-summary.html new file mode 100644 index 0000000..26dcbe2 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/package-summary.html @@ -0,0 +1,156 @@ + + + + + +fr.insalyon.chess.gui + + + + + + + + +
+ + + + + + + +
+ + +
+

Package fr.insalyon.chess.gui

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/package-tree.html b/doc/fr/insalyon/chess/gui/package-tree.html new file mode 100644 index 0000000..2ec1818 --- /dev/null +++ b/doc/fr/insalyon/chess/gui/package-tree.html @@ -0,0 +1,151 @@ + + + + + +fr.insalyon.chess.gui Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package fr.insalyon.chess.gui

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/gui/package-use.html b/doc/fr/insalyon/chess/gui/package-use.html new file mode 100644 index 0000000..872606d --- /dev/null +++ b/doc/fr/insalyon/chess/gui/package-use.html @@ -0,0 +1,155 @@ + + + + + +Uses of Package fr.insalyon.chess.gui + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
fr.insalyon.chess.gui

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/package-frame.html b/doc/fr/insalyon/chess/package-frame.html new file mode 100644 index 0000000..f8fc6cf --- /dev/null +++ b/doc/fr/insalyon/chess/package-frame.html @@ -0,0 +1,21 @@ + + + + + +fr.insalyon.chess + + + + + +

fr.insalyon.chess

+
+

Classes

+ +
+ + diff --git a/doc/fr/insalyon/chess/package-summary.html b/doc/fr/insalyon/chess/package-summary.html new file mode 100644 index 0000000..810e481 --- /dev/null +++ b/doc/fr/insalyon/chess/package-summary.html @@ -0,0 +1,144 @@ + + + + + +fr.insalyon.chess + + + + + + + + +
+ + + + + + + +
+ + +
+

Package fr.insalyon.chess

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/package-tree.html b/doc/fr/insalyon/chess/package-tree.html new file mode 100644 index 0000000..7588f28 --- /dev/null +++ b/doc/fr/insalyon/chess/package-tree.html @@ -0,0 +1,136 @@ + + + + + +fr.insalyon.chess Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For Package fr.insalyon.chess

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/fr/insalyon/chess/package-use.html b/doc/fr/insalyon/chess/package-use.html new file mode 100644 index 0000000..8623b5f --- /dev/null +++ b/doc/fr/insalyon/chess/package-use.html @@ -0,0 +1,212 @@ + + + + + +Uses of Package fr.insalyon.chess + + + + + + + + +
+ + + + + + + +
+ + +
+

Uses of Package
fr.insalyon.chess

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/help-doc.html b/doc/help-doc.html new file mode 100644 index 0000000..5ffd244 --- /dev/null +++ b/doc/help-doc.html @@ -0,0 +1,223 @@ + + + + + +API Help + + + + + + + + +
+ + + + + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html new file mode 100644 index 0000000..66fb063 --- /dev/null +++ b/doc/index-files/index-1.html @@ -0,0 +1,151 @@ + + + + + +A-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

A

+
+
AbstractPawn - Class in fr.insalyon.chess.core
+
 
+
AbstractPawn() - Constructor for class fr.insalyon.chess.core.AbstractPawn
+
 
+
add(int, int) - Method in class fr.insalyon.chess.core.Location
+
 
+
add(MovementType, Location, Location) - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
add(Location, Location) - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
addLocation(Location[], Location) - Static method in class fr.insalyon.chess.core.Location
+
 
+
ai - Variable in class fr.insalyon.chess.gui.AsyncComputerPlay
+
 
+
ai - Variable in class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
allowedMovement(Location, Location) - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
allTargetedLocations - Variable in class fr.insalyon.chess.ai.ChessAI
+
 
+
allTargetedLocations - Variable in class fr.insalyon.chess.ai.ChessAI2
+
 
+
AsyncComputerPlay - Class in fr.insalyon.chess.gui
+
 
+
AsyncComputerPlay(GameApplication) - Constructor for class fr.insalyon.chess.gui.AsyncComputerPlay
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html new file mode 100644 index 0000000..f67d444 --- /dev/null +++ b/doc/index-files/index-10.html @@ -0,0 +1,137 @@ + + + + + +K-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

K

+
+
King - Class in fr.insalyon.chess.core.pawns
+
 
+
King(Team) - Constructor for class fr.insalyon.chess.core.pawns.King
+
 
+
King(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.King
+
 
+
Knight - Class in fr.insalyon.chess.core.pawns
+
 
+
Knight(Team) - Constructor for class fr.insalyon.chess.core.pawns.Knight
+
 
+
Knight(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.Knight
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..d4c4eaf --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,145 @@ + + + + + +L-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

L

+
+
leastKingMovs - Variable in class fr.insalyon.chess.ai.ChessAI
+
 
+
LittlePawn - Class in fr.insalyon.chess.core.pawns
+
 
+
LittlePawn(Team) - Constructor for class fr.insalyon.chess.core.pawns.LittlePawn
+
 
+
LittlePawn(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.LittlePawn
+
 
+
location - Variable in class fr.insalyon.chess.core.AbstractPawn
+
 
+
Location - Class in fr.insalyon.chess.core
+
 
+
Location(int, int) - Constructor for class fr.insalyon.chess.core.Location
+
 
+
locationArrayContains(Location[], Location) - Static method in class fr.insalyon.chess.core.Location
+
 
+
locationFormat - Variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
locations - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..bfbac8c --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,145 @@ + + + + + +M-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

M

+
+
main(String...) - Static method in class fr.insalyon.chess.ChessGame
+
 
+
makePlay(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI
+
 
+
max(Game, Team, int) - Method in class fr.insalyon.chess.ai.ChessAI2
+
 
+
min(Game, Team, int) - Method in class fr.insalyon.chess.ai.ChessAI2
+
 
+
miniMax(Game, Team, int, int, int, boolean) - Method in class fr.insalyon.chess.ai.ChessAI3
+
 
+
MovementBuilder - Class in fr.insalyon.chess.core
+
 
+
MovementBuilder(Game, boolean) - Constructor for class fr.insalyon.chess.core.MovementBuilder
+
 
+
MovementType - Enum in fr.insalyon.chess.core
+
 
+
MovementType() - Constructor for enum fr.insalyon.chess.core.MovementType
+
 
+
movePawn(Location, Location) - Method in class fr.insalyon.chess.Game
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..ba49d64 --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,141 @@ + + + + + +N-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

N

+
+
name - Variable in class fr.insalyon.chess.core.AbstractPawn
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.Bishop
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.King
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.Knight
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.LittlePawn
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.Queen
+
 
+
NAME - Variable in class fr.insalyon.chess.core.pawns.Rook
+
 
+
name - Variable in enum fr.insalyon.chess.core.Team
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html new file mode 100644 index 0000000..db0b839 --- /dev/null +++ b/doc/index-files/index-14.html @@ -0,0 +1,137 @@ + + + + + +P-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

P

+
+
pawn - Variable in class fr.insalyon.chess.gui.PawnDragEvent
+
 
+
PawnDragEvent - Class in fr.insalyon.chess.gui
+
 
+
PawnDragEvent(AbstractPawn, ImageView, GameApplication) - Constructor for class fr.insalyon.chess.gui.PawnDragEvent
+
 
+
pieces - Variable in class fr.insalyon.chess.ai.ChessAI2
+
 
+
play(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI2
+
 
+
play(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI3
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html new file mode 100644 index 0000000..d74b389 --- /dev/null +++ b/doc/index-files/index-15.html @@ -0,0 +1,131 @@ + + + + + +Q-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

Q

+
+
Queen - Class in fr.insalyon.chess.core.pawns
+
 
+
Queen(Team) - Constructor for class fr.insalyon.chess.core.pawns.Queen
+
 
+
Queen(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.Queen
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-16.html b/doc/index-files/index-16.html new file mode 100644 index 0000000..eb35e98 --- /dev/null +++ b/doc/index-files/index-16.html @@ -0,0 +1,137 @@ + + + + + +R-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

R

+
+
refresh() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
Rook - Class in fr.insalyon.chess.core.pawns
+
 
+
Rook(Team) - Constructor for class fr.insalyon.chess.core.pawns.Rook
+
 
+
Rook(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.Rook
+
 
+
rotatePlayer() - Method in class fr.insalyon.chess.Game
+
 
+
row - Variable in class fr.insalyon.chess.core.Location
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-17.html b/doc/index-files/index-17.html new file mode 100644 index 0000000..2d3b325 --- /dev/null +++ b/doc/index-files/index-17.html @@ -0,0 +1,145 @@ + + + + + +S-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

S

+
+
setCol(int) - Method in class fr.insalyon.chess.core.Location
+
 
+
setCollide(boolean) - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
setComputerTurn(boolean) - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
setLocation(Location) - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Set a new location for the pawn
+
+
setRow(int) - Method in class fr.insalyon.chess.core.Location
+
 
+
setTeam(Team) - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
setupVariables(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI
+
 
+
setupVariables(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI2
+
 
+
start(Stage) - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-18.html b/doc/index-files/index-18.html new file mode 100644 index 0000000..ace9b77 --- /dev/null +++ b/doc/index-files/index-18.html @@ -0,0 +1,139 @@ + + + + + +T-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

T

+
+
TakePlaceHandler - Class in fr.insalyon.chess.gui
+
 
+
TakePlaceHandler(GameApplication) - Constructor for class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
team - Variable in class fr.insalyon.chess.core.AbstractPawn
+
 
+
team - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
Team - Enum in fr.insalyon.chess.core
+
 
+
Team(String, int) - Constructor for enum fr.insalyon.chess.core.Team
+
 
+
toString() - Method in class fr.insalyon.chess.core.Location
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-19.html b/doc/index-files/index-19.html new file mode 100644 index 0000000..39c7b72 --- /dev/null +++ b/doc/index-files/index-19.html @@ -0,0 +1,154 @@ + + + + + +V-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

V

+
+
value - Variable in class fr.insalyon.chess.core.AbstractPawn
+
 
+
valueOf(String) - Static method in enum fr.insalyon.chess.core.End
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum fr.insalyon.chess.core.MovementType
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum fr.insalyon.chess.core.Team
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum fr.insalyon.chess.core.End
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum fr.insalyon.chess.core.MovementType
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum fr.insalyon.chess.core.Team
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html new file mode 100644 index 0000000..05ba1f4 --- /dev/null +++ b/doc/index-files/index-2.html @@ -0,0 +1,145 @@ + + + + + +B-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

B

+
+
b - Variable in class fr.insalyon.chess.ai.ChessAI3
+
 
+
Bishop - Class in fr.insalyon.chess.core.pawns
+
 
+
Bishop(Team) - Constructor for class fr.insalyon.chess.core.pawns.Bishop
+
 
+
Bishop(Team, Location) - Constructor for class fr.insalyon.chess.core.pawns.Bishop
+
 
+
blackKing - Variable in class fr.insalyon.chess.Game
+
 
+
board - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
board - Variable in class fr.insalyon.chess.Game
+
 
+
boardGrid - Variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
boardScene - Variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
build() - Method in class fr.insalyon.chess.core.MovementBuilder
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-20.html b/doc/index-files/index-20.html new file mode 100644 index 0000000..b86b48d --- /dev/null +++ b/doc/index-files/index-20.html @@ -0,0 +1,129 @@ + + + + + +W-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

W

+
+
whiteKing - Variable in class fr.insalyon.chess.Game
+
 
+
WIDTH - Static variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html new file mode 100644 index 0000000..3809beb --- /dev/null +++ b/doc/index-files/index-3.html @@ -0,0 +1,169 @@ + + + + + +C-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

C

+
+
call() - Method in class fr.insalyon.chess.gui.AsyncComputerPlay
+
 
+
cases - Variable in class fr.insalyon.chess.ai.ChessAI3
+
 
+
check - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
check(Team) - Method in class fr.insalyon.chess.Game
+
+
The king is in threat ?
+
+
checkOver() - Method in class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
ChessAI - Class in fr.insalyon.chess.ai
+
 
+
ChessAI() - Constructor for class fr.insalyon.chess.ai.ChessAI
+
 
+
ChessAI2 - Class in fr.insalyon.chess.ai
+
 
+
ChessAI2() - Constructor for class fr.insalyon.chess.ai.ChessAI2
+
 
+
ChessAI3 - Class in fr.insalyon.chess.ai
+
 
+
ChessAI3() - Constructor for class fr.insalyon.chess.ai.ChessAI3
+
 
+
ChessGame - Class in fr.insalyon.chess
+
 
+
ChessGame() - Constructor for class fr.insalyon.chess.ChessGame
+
 
+
col - Variable in class fr.insalyon.chess.core.Location
+
 
+
collide - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
computerPlay(Team) - Method in class fr.insalyon.chess.gui.AsyncComputerPlay
+
 
+
computerPlay(Team) - Method in class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
computerTurn - Variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
concat(Location[], Location[]) - Static method in class fr.insalyon.chess.core.Location
+
 
+
createPawnNode(AbstractPawn) - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
currentPlayer - Variable in class fr.insalyon.chess.Game
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html new file mode 100644 index 0000000..7a0c2e3 --- /dev/null +++ b/doc/index-files/index-4.html @@ -0,0 +1,135 @@ + + + + + +D-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

D

+
+
display() - Method in class fr.insalyon.chess.Game
+
 
+
DragOverAccept - Class in fr.insalyon.chess.gui
+
 
+
DragOverAccept() - Constructor for class fr.insalyon.chess.gui.DragOverAccept
+
 
+
drawBoard() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
drawPieces() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html new file mode 100644 index 0000000..cd9ff99 --- /dev/null +++ b/doc/index-files/index-5.html @@ -0,0 +1,139 @@ + + + + + +E-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

E

+
+
End - Enum in fr.insalyon.chess.core
+
 
+
End() - Constructor for enum fr.insalyon.chess.core.End
+
 
+
enemyPieces - Variable in class fr.insalyon.chess.ai.ChessAI
+
 
+
enemyPieces - Variable in class fr.insalyon.chess.ai.ChessAI2
+
 
+
equals(Location) - Method in class fr.insalyon.chess.core.Location
+
 
+
evalState(AbstractPawn[][], Team) - Method in class fr.insalyon.chess.ai.ChessAI2
+
 
+
evalState(Game, Team) - Method in class fr.insalyon.chess.ai.ChessAI3
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html new file mode 100644 index 0000000..69005eb --- /dev/null +++ b/doc/index-files/index-6.html @@ -0,0 +1,135 @@ + + + + + +F-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

F

+
+
fr.insalyon.chess - package fr.insalyon.chess
+
 
+
fr.insalyon.chess.ai - package fr.insalyon.chess.ai
+
 
+
fr.insalyon.chess.core - package fr.insalyon.chess.core
+
 
+
fr.insalyon.chess.core.pawns - package fr.insalyon.chess.core.pawns
+
 
+
fr.insalyon.chess.gui - package fr.insalyon.chess.gui
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html new file mode 100644 index 0000000..9bfa2b4 --- /dev/null +++ b/doc/index-files/index-7.html @@ -0,0 +1,201 @@ + + + + + +G-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

G

+
+
game - Variable in class fr.insalyon.chess.core.MovementBuilder
+
 
+
Game - Class in fr.insalyon.chess
+
 
+
Game() - Constructor for class fr.insalyon.chess.Game
+
 
+
game - Variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
gameApplication - Variable in class fr.insalyon.chess.gui.AsyncComputerPlay
+
 
+
GameApplication - Class in fr.insalyon.chess.gui
+
 
+
GameApplication() - Constructor for class fr.insalyon.chess.gui.GameApplication
+
 
+
gameApplication - Variable in class fr.insalyon.chess.gui.PawnDragEvent
+
 
+
gameApplication - Variable in class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
gameOver(Team) - Method in class fr.insalyon.chess.Game
+
+
Game ending state for a team
+
+
getBoard() - Method in class fr.insalyon.chess.Game
+
 
+
getBoardGrid() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
getCol() - Method in class fr.insalyon.chess.core.Location
+
 
+
getCurrentPlayer() - Method in class fr.insalyon.chess.Game
+
 
+
getGame() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
getId() - Method in enum fr.insalyon.chess.core.Team
+
 
+
getKing(Team) - Method in class fr.insalyon.chess.Game
+
 
+
getLocation() - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Get the current location of the pawn
+
+
getLocationFormat() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Get the locations to which the pawn can move from the given location
+
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.Bishop
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.King
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.Knight
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.LittlePawn
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.Queen
+
 
+
getMovement(Game, Location, boolean) - Method in class fr.insalyon.chess.core.pawns.Rook
+
 
+
getName() - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Get the name of the pawn
+
+
getName() - Method in enum fr.insalyon.chess.core.Team
+
 
+
getPawnByLocation(Location) - Method in class fr.insalyon.chess.Game
+
 
+
getRow() - Method in class fr.insalyon.chess.core.Location
+
 
+
getTeam() - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Get the team of the pawn
+
+
getValue() - Method in class fr.insalyon.chess.core.AbstractPawn
+
+
Get the value of the pawn
+
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html new file mode 100644 index 0000000..eab38c0 --- /dev/null +++ b/doc/index-files/index-8.html @@ -0,0 +1,133 @@ + + + + + +H-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

H

+
+
handle(DragEvent) - Method in class fr.insalyon.chess.gui.DragOverAccept
+
 
+
handle(MouseEvent) - Method in class fr.insalyon.chess.gui.PawnDragEvent
+
 
+
handle(DragEvent) - Method in class fr.insalyon.chess.gui.TakePlaceHandler
+
 
+
HEIGHT - Static variable in class fr.insalyon.chess.gui.GameApplication
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html new file mode 100644 index 0000000..5f3bfc5 --- /dev/null +++ b/doc/index-files/index-9.html @@ -0,0 +1,139 @@ + + + + + +I-Index + + + + + + + + +
+ + + + + + + +
+ + +
A B C D E F G H I K L M N P Q R S T V W  + + +

I

+
+
id - Variable in enum fr.insalyon.chess.core.Team
+
 
+
imageView - Variable in class fr.insalyon.chess.gui.PawnDragEvent
+
 
+
init() - Method in class fr.insalyon.chess.Game
+
+
Initialize the board by default
+
+
isComputerTurn() - Method in class fr.insalyon.chess.gui.GameApplication
+
 
+
isEmpty(AbstractPawn[][], Location) - Static method in class fr.insalyon.chess.Game
+
 
+
isInside(Object[][]) - Method in class fr.insalyon.chess.core.Location
+
 
+
+A B C D E F G H I K L M N P Q R S T V W 
+ +
+ + + + + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..f1eede8 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,75 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/overview-frame.html b/doc/overview-frame.html new file mode 100644 index 0000000..84367fb --- /dev/null +++ b/doc/overview-frame.html @@ -0,0 +1,25 @@ + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..bcc1c30 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,152 @@ + + + + + +Overview + + + + + + + + +
+ + + + + + + +
+ + +
+

Javadoc chess game

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
fr.insalyon.chess 
fr.insalyon.chess.ai 
fr.insalyon.chess.core 
fr.insalyon.chess.core.pawns 
fr.insalyon.chess.gui 
+
+ +
+ + + + + + + +
+ + + + diff --git a/doc/overview-tree.html b/doc/overview-tree.html new file mode 100644 index 0000000..9bad562 --- /dev/null +++ b/doc/overview-tree.html @@ -0,0 +1,186 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + + + + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/package-list b/doc/package-list new file mode 100644 index 0000000..4d2c100 --- /dev/null +++ b/doc/package-list @@ -0,0 +1,5 @@ +fr.insalyon.chess +fr.insalyon.chess.ai +fr.insalyon.chess.core +fr.insalyon.chess.core.pawns +fr.insalyon.chess.gui diff --git a/doc/script.js b/doc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/serialized-form.html b/doc/serialized-form.html new file mode 100644 index 0000000..d1f05bf --- /dev/null +++ b/doc/serialized-form.html @@ -0,0 +1,150 @@ + + + + + +Serialized Form + + + + + + + + +
+ + + + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + + + +
+ + + + diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/src/fr/insalyon/chess/ai/ChessAI3.java b/src/fr/insalyon/chess/ai/ChessAI3.java index 5813dc2..04b59ad 100644 --- a/src/fr/insalyon/chess/ai/ChessAI3.java +++ b/src/fr/insalyon/chess/ai/ChessAI3.java @@ -44,8 +44,10 @@ public void play(Game game, Team team) { int initialValue = evalState(game, Team.BLACK); int bestValue = Integer.MIN_VALUE; - Location bestTo = null; - AbstractPawn bestPawn = null; + //The size is wide enough to be able to store all equal possible moves (the max possible moves should be 218) + Location[] bestTos = new Location[512]; + AbstractPawn[] bestPawns = new AbstractPawn[512]; + int p = 0; //To current index of bestTo and bestPawn int depth = 3; @@ -73,10 +75,18 @@ public void play(Game game, Team team) { int value = miniMax(game, game.getCurrentPlayer(), depth, Integer.MIN_VALUE, Integer.MAX_VALUE, false); //Is it the best one ? - if(value >= bestValue) { + if(value > bestValue) { bestValue = value; - bestTo = targetedLoc; - bestPawn = pawn; + //Reset bestTo and bestPawn + bestTos = new Location[512]; + bestPawns = new AbstractPawn[512]; + p = 0; + + bestTos[p] = targetedLoc; + bestPawns[p++] = pawn; + } else if (value == bestValue) { //Just another good one ? Add it + bestTos[p] = targetedLoc; + bestPawns[p++] = pawn; } //Undo simulation @@ -87,6 +97,11 @@ public void play(Game game, Team team) { } } } + // Select random equal best moves to create opportunities and avoid repetitive playing. + int selectedPlay = (int) (Math.random() * p); + Location bestTo = bestTos[selectedPlay]; + AbstractPawn bestPawn = bestPawns[selectedPlay]; + if(bestTo != null && bestPawn != null) { System.out.println("Best move " + bestPawn.getName() + " to " + bestTo + " with score : " + bestValue + " and done " + cases + " cases "); game.movePawn(bestPawn.getLocation(), bestTo);