Example #1
0
 public bool[] NashValue()
 {
     bool[] options = new bool[2] {
         NashPrisioners.BestOption(), NashPrisioners.BestOption()
     };
     return(options);
 }
Example #2
0
        public static bool BestOption()
        {
            NashPrisioners firstConfessing    = new NashPrisioners(true, false);
            NashPrisioners firstNotConfessing = new NashPrisioners(false, false);

            if (firstConfessing.GetFirstWorstPenalty() < firstNotConfessing.GetFirstWorstPenalty())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
 public string NashValueNums()
 {
     return(new NashPrisioners(NashPrisioners.BestOption(), NashPrisioners.BestOption()).GetStringPenalties());
 }