예제 #1
0
파일: XoGameGui.cs 프로젝트: uaandrei/XO
 private Color GetColorForValue(XoValue xoValue)
 {
     switch (xoValue)
     {
         case XoValue.FirstPlayer:
             return Color.Blue;
         case XoValue.SecondPlayer:
             return Color.Red;
         default:
             return Color.Gray;
     }
 }
예제 #2
0
파일: Player.cs 프로젝트: uaandrei/XO
 public Player(XoValue signature)
 {
     _signature = signature;
 }
예제 #3
0
파일: XoSpace.cs 프로젝트: uaandrei/XO
 public void Mark(Player player)
 {
     _value = player.Signature;
     RaiseOnMarkedEvent();
 }