public void Suggestion(int suggester, MurderSet suggestion, int?disprover, Card disproof) { if (disproof == null) { m_accusation = suggestion; } }
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()); }
public Card Disprove(int player, MurderSet suggestion) { Records.Add("disprove"); return(null); }
public void Accusation(int accuser, MurderSet suggestion, bool won) { Records.Add("accusation"); }
public void Suggestion(int suggester, MurderSet suggestion, int?disprover, Card disproof) { Records.Add("suggestion"); }
public void Accusation(int accuser, MurderSet suggestion, bool won) { }