Exemple #1
0
        public static int[] GetPointsChanges(DilemmaAction action1, DilemmaAction action2)
        {
            var pointDiff = new int[2];

            if (action1 == DilemmaAction.Nothing && action2 == DilemmaAction.Nothing)
            {
                pointDiff[0] = -3;
                pointDiff[1] = -3;
            }
            else if (action1 == DilemmaAction.Nothing)
            {
                pointDiff[0] = 0;
                pointDiff[1] = 3;
            }
            else if (action2 == DilemmaAction.Nothing)
            {
                pointDiff[0] = 3;
                pointDiff[1] = 0;
            }
            else if (action1 == DilemmaAction.Betray && action2 == DilemmaAction.Betray)
            {
                pointDiff[0] = 1;
                pointDiff[1] = 1;
            }
            else if (action1 == DilemmaAction.Cover && action2 == DilemmaAction.Cover)
            {
                pointDiff[0] = 2;
                pointDiff[1] = 2;
            }
            else if (action1 == DilemmaAction.Betray && action2 == DilemmaAction.Cover)
            {
                pointDiff[0] = 3;
                pointDiff[1] = 0;
            }
            else if (action1 == DilemmaAction.Cover && action2 == DilemmaAction.Betray)
            {
                pointDiff[0] = 0;
                pointDiff[1] = 3;
            }

            return(pointDiff);
        }
Exemple #2
0
 public DilemmaDecision(DilemmaAction action)
 {
     Action = action;
 }