1 /**
2  * The chess framework library.
3  * More information is available at http://www.jinchess.com/.
4  * Copyright (C) 2002 Alexander Maryanovsky.
5  * All rights reserved.
6  *
7  * The chess framework library is free software; you can redistribute
8  * it and/or modify it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2 of the
10  * License, or (at your option) any later version.
11  *
12  * The chess framework library is distributed in the hope that it will
13  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with the chess framework library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21 
22 package free.chess;
23 
24 
25 /**
26  * An implementation of WildVariant for the game of chess (classic).
27  */
28 
29 public final class Chess extends ChesslikeGenericVariant{
30 
31 
32 
33   /**
34    * The lexigraphic representation of the initial position in chess.
35    */
36 
37   public static final String INITIAL_POSITION_LEXIGRAPHIC = "rnbqkbnrpppppppp--------------------------------PPPPPPPPRNBQKBNR";
38 
39 
40 
41 
42   /**
43    * The FEN representation of the initial position in chess.
44    */
45 
46   public static final String INITIAL_POSITION_FEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
47 
48 
49 
50 
51   /**
52    * The sole instance of this class.
53    */
54 
55   private static Chess instance = new Chess();
56 
57 
58 
59 
60   /**
61    * Returns an instance of Chess.
62    */
63 
getInstance()64   public static Chess getInstance(){
65     return instance;
66   }
67 
68 
69 
70 
71   /**
72    * Creates a new instance of Chess.
73    */
74 
Chess()75   private Chess(){
76     super(INITIAL_POSITION_FEN, "Chess");
77   }
78 
79 
80 }
81