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)); }
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)); }