private ChessmanFactory()
 {
     kv = new List<KeyValuePair<string, Chessman>>();
     Chessman b=new BlackChessman();
     kv.Add(new KeyValuePair<string, Chessman>("b",b) );
     Chessman w = new WhiteChessman();
     kv.Add(new KeyValuePair<string, Chessman>("w", w));
 }
Ejemplo n.º 2
0
        private ChessmanFactory()
        {
            kv = new List <KeyValuePair <string, Chessman> >();
            Chessman b = new BlackChessman();

            kv.Add(new KeyValuePair <string, Chessman>("b", b));
            Chessman w = new WhiteChessman();

            kv.Add(new KeyValuePair <string, Chessman>("w", w));
        }