[LIB-9] Separate chesshog-format module
[chesshog.git] / chesshog-format / src / main / java / org / hedgecode / chess / fen / FEN.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018. Developed by Hedgecode.
+ * Copyright (c) 2018-2019. Developed by Hedgecode.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -140,11 +140,11 @@ public final class FEN {
         } else {
             boolean isKing = false, isQueen = false;
             switch (color) {
-                case WHITE:
+                case Color.WHITE:
                     isKing = (castles.indexOf(WHITE_KING) >= 0);
                     isQueen = (castles.indexOf(WHITE_QUEEN) >= 0);
                     break;
-                case BLACK:
+                case Color.BLACK:
                     isKing = (castles.indexOf(BLACK_KING) >= 0);
                     isQueen = (castles.indexOf(BLACK_QUEEN) >= 0);
                     break;
@@ -160,24 +160,24 @@ public final class FEN {
     public static String getCastle(Castle whiteCastle, Castle blackCastle) {
         StringBuilder sb = new StringBuilder();
         switch (whiteCastle) {
-            case KING:
+            case Castle.KING:
                 sb.append(WHITE_KING);
                 break;
-            case QUEEN:
+            case Castle.QUEEN:
                 sb.append(WHITE_QUEEN);
                 break;
-            case BOTH:
+            case Castle.BOTH:
                 sb.append(WHITE_KING).append(WHITE_QUEEN);
                 break;
         }
         switch (blackCastle) {
-            case KING:
+            case Castle.KING:
                 sb.append(BLACK_KING);
                 break;
-            case QUEEN:
+            case Castle.QUEEN:
                 sb.append(BLACK_QUEEN);
                 break;
-            case BOTH:
+            case Castle.BOTH:
                 sb.append(BLACK_KING).append(BLACK_QUEEN);
                 break;
         }