// Path: baggle-client/src/inouire/baggle/client/gui/ColorFactory.java
// public class ColorFactory {
//     final static public Color BROWN_BOARD= new Color(74,50,19);
//     final static public Color BLUE_BOARD = new Color(28,47,85);
//     final static public Color GREEN_BOARD = new Color(23,77,19);
//     final static public Color RED_BOARD = new Color(113,38,35);
//     final static public Color PURPLE_BOARD = new Color(58,42,69);
//     
//     final static public Color LIGHT_BLUE = new Color(164,178,207);
//     final static public Color LIGHT_RED = new Color(255,113,113);
//     final static public Color LIGHT_GREEN = new Color(157,195,104);
//     
//     final static public Color VERY_LIGHT_GRAY = new Color(220,220,220);
//     final static public Color LIGHT_GRAY = new Color(190,190,190);
//     
//     final static public Color YELLOW_NOTIF = new Color(255,250,151);
// 
//     final static public Color SERVER_BG=Color.LIGHT_GRAY;
//     final static public Color MOBILE_BG=Color.LIGHT_GRAY;
//     final static public Color UNKNOWN_BG=Color.LIGHT_GRAY;
//     final static public Color ROBOT_BG=new Color(255,250,151);
//     
//     final static public Color DONKEY_BG=new Color(159,196,123);
//     final static public Color LADYBUG_BG=new Color(255,215,247);
//     final static public Color HAT_BG=new Color(127,141,157);
//     final static public Color TIGER_BG=new Color(211,214,255);
//     final static public Color TUX_BG=new Color(255,219,151);
//     final static public Color WINE_BG=new Color(255,155,155);
//     final static public Color COFFEE_BG =new Color(199,192,175);
//     final static public Color COLORS_BG=new Color(210,214,234);
//     
//     final static public Color GOOD_WORD = new Color(70,122,15);
//     final static public Color BAD_WORD = new Color(187,41,41);
//     
// //        new Color(246,205,147),
// //        new Color(191,191,191),
// //        new Color(219,180,121),
// //        new Color(175,180,132),
// //        new Color(220,220,220),
// 
//         
//     public static Color getAvatarColor(String name){
//         Color c=Color.LIGHT_GRAY;
//         if(name.equals("robot")){
//             c=ROBOT_BG;
//         }else if(name.equals("donkey")){
//             c=DONKEY_BG;
//         }else if(name.equals("ladybug")){
//             c=LADYBUG_BG;
//         }else if(name.equals("hat")){
//             c=HAT_BG;
//         }else if(name.equals("tiger")){
//             c=TIGER_BG;
//         }else if(name.equals("tux")){
//             c=TUX_BG;
//         }else if(name.equals("wine")){
//             c=WINE_BG;
//         }else if(name.equals("coffee")){
//             c=COFFEE_BG;
//         }else if(name.equals("colors")){
//             c=COLORS_BG;
//         }
//         return c;
//     }
//     
//     public static Color getBoardColor(boolean big_board,String game_mode){
//         Color c;
//         if(big_board){
//             if(game_mode.equalsIgnoreCase("trad")){
//                 c=ColorFactory.PURPLE_BOARD;
//             }else{
//                 c=ColorFactory.BROWN_BOARD;
//             }
//         }else{
//             if(game_mode.equalsIgnoreCase("all")){
//                 c=ColorFactory.BLUE_BOARD;
//             }else{
//                 c=ColorFactory.GREEN_BOARD;
//             }
//         }
//         return c;
//     }
// 
// }


import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JComponent;
import inouire.baggle.client.gui.ColorFactory;
package inouire.baggle.client.gui.modules;


/**
 * @author Edouard de Labareyre
 */
public class MiniBoardPanel extends JComponent{

    private MiniDice[][] des;
    private Color boardColor;
    private String grid;
    public int size;
    boolean is_highlighted=false;

    final static private int b=4;//taille du bord
    final static private int i=1;//taille de l'inter-dé
    final static int STYLE=Font.BOLD;
    
    public MiniBoardPanel(){
        this.size = 0;
// Path: baggle-client/src/inouire/baggle/client/gui/ColorFactory.java
// public class ColorFactory {
//     final static public Color BROWN_BOARD= new Color(74,50,19);
//     final static public Color BLUE_BOARD = new Color(28,47,85);
//     final static public Color GREEN_BOARD = new Color(23,77,19);
//     final static public Color RED_BOARD = new Color(113,38,35);
//     final static public Color PURPLE_BOARD = new Color(58,42,69);
//     
//     final static public Color LIGHT_BLUE = new Color(164,178,207);
//     final static public Color LIGHT_RED = new Color(255,113,113);
//     final static public Color LIGHT_GREEN = new Color(157,195,104);
//     
//     final static public Color VERY_LIGHT_GRAY = new Color(220,220,220);
//     final static public Color LIGHT_GRAY = new Color(190,190,190);
//     
//     final static public Color YELLOW_NOTIF = new Color(255,250,151);
// 
//     final static public Color SERVER_BG=Color.LIGHT_GRAY;
//     final static public Color MOBILE_BG=Color.LIGHT_GRAY;
//     final static public Color UNKNOWN_BG=Color.LIGHT_GRAY;
//     final static public Color ROBOT_BG=new Color(255,250,151);
//     
//     final static public Color DONKEY_BG=new Color(159,196,123);
//     final static public Color LADYBUG_BG=new Color(255,215,247);
//     final static public Color HAT_BG=new Color(127,141,157);
//     final static public Color TIGER_BG=new Color(211,214,255);
//     final static public Color TUX_BG=new Color(255,219,151);
//     final static public Color WINE_BG=new Color(255,155,155);
//     final static public Color COFFEE_BG =new Color(199,192,175);
//     final static public Color COLORS_BG=new Color(210,214,234);
//     
//     final static public Color GOOD_WORD = new Color(70,122,15);
//     final static public Color BAD_WORD = new Color(187,41,41);
//     
// //        new Color(246,205,147),
// //        new Color(191,191,191),
// //        new Color(219,180,121),
// //        new Color(175,180,132),
// //        new Color(220,220,220),
// 
//         
//     public static Color getAvatarColor(String name){
//         Color c=Color.LIGHT_GRAY;
//         if(name.equals("robot")){
//             c=ROBOT_BG;
//         }else if(name.equals("donkey")){
//             c=DONKEY_BG;
//         }else if(name.equals("ladybug")){
//             c=LADYBUG_BG;
//         }else if(name.equals("hat")){
//             c=HAT_BG;
//         }else if(name.equals("tiger")){
//             c=TIGER_BG;
//         }else if(name.equals("tux")){
//             c=TUX_BG;
//         }else if(name.equals("wine")){
//             c=WINE_BG;
//         }else if(name.equals("coffee")){
//             c=COFFEE_BG;
//         }else if(name.equals("colors")){
//             c=COLORS_BG;
//         }
//         return c;
//     }
//     
//     public static Color getBoardColor(boolean big_board,String game_mode){
//         Color c;
//         if(big_board){
//             if(game_mode.equalsIgnoreCase("trad")){
//                 c=ColorFactory.PURPLE_BOARD;
//             }else{
//                 c=ColorFactory.BROWN_BOARD;
//             }
//         }else{
//             if(game_mode.equalsIgnoreCase("all")){
//                 c=ColorFactory.BLUE_BOARD;
//             }else{
//                 c=ColorFactory.GREEN_BOARD;
//             }
//         }
//         return c;
//     }
// 
// }


// Path: baggle-client/src/inouire/baggle/client/gui/modules/MiniBoardPanel.java
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JComponent;
import inouire.baggle.client.gui.ColorFactory;

package inouire.baggle.client.gui.modules;


/**
 * @author Edouard de Labareyre
 */
public class MiniBoardPanel extends JComponent{

    private MiniDice[][] des;
    private Color boardColor;
    private String grid;
    public int size;
    boolean is_highlighted=false;

    final static private int b=4;//taille du bord
    final static private int i=1;//taille de l'inter-dé
    final static int STYLE=Font.BOLD;
    
    public MiniBoardPanel(){
        this.size = 0;
        this.boardColor = ColorFactory.BROWN_BOARD;