Esempio n. 1
0
 public void Suggestion(int suggester, MurderSet suggestion, int?disprover, Card disproof)
 {
     if (disproof == null)
     {
         m_accusation = suggestion;
     }
 }
Esempio n. 2
0
 public Card Disprove(int player, MurderSet suggestion)
 {
     if (m_suspects.IndexOf(suggestion.Suspect) != -1)
     {
         return(new Card(suggestion.Suspect));
     }
     if (m_weapons.IndexOf(suggestion.Weapon) != -1)
     {
         return(new Card(suggestion.Weapon));
     }
     if (m_rooms.IndexOf(suggestion.Room) != -1)
     {
         return(new Card(suggestion.Room));
     }
     return(null);
 }
 public void TestValues()
 {
     var set = new MurderSet(Suspect.ColMustard, Weapon.Revolver, Room.Lounge);
       var l = set.Values.ToList();
       Assert.AreEqual(3, l.Count());
 }
 public void TestToString()
 {
     var set = new MurderSet(Suspect.ColMustard, Weapon.Revolver, Room.Lounge);
       Assert.AreEqual("Mu Re Lo", set.ToString());
 }
Esempio n. 5
0
 public Card Disprove(int player, MurderSet suggestion)
 {
     Records.Add("disprove");
     return(null);
 }
Esempio n. 6
0
 public void Accusation(int accuser, MurderSet suggestion, bool won)
 {
     Records.Add("accusation");
 }
Esempio n. 7
0
 public void Suggestion(int suggester, MurderSet suggestion, int?disprover, Card disproof)
 {
     Records.Add("suggestion");
 }
Esempio n. 8
0
 public void Accusation(int accuser, MurderSet suggestion, bool won)
 {
 }
Esempio n. 9
0
        public void TestToString()
        {
            var set = new MurderSet(Suspect.ColMustard, Weapon.Revolver, Room.Lounge);

            Assert.AreEqual("Mu Re Lo", set.ToString());
        }