예제 #1
0
 private static void Add(FigureColor item)
 {
     if (values == null)
     {
         values = new List<FigureColor>();
     }
     values.Add(item);
 }
예제 #2
0
        public Player(String name, FigureColor color, int startPosition)
        {
            this.name = name;
            this.color = color;
            this.startPosition = startPosition;

            this.numOfFiguresAtStart = NUMBER_OF_FIGURES;
            this.numOfFiguresAtFinish = 0;

            this.numOfHits = 0;
            this.numOfDeaths = 0;
            this.winningRound = -1;
        }