public int Submit(Teory teory) { var ret = new List <int> { }; if (solution.Suspeito.Key != teory.Suspeito.Key) { ret.Add(1); } if (solution.Local.Key != teory.Local.Key) { ret.Add(2); } if (solution.Arma.Key != teory.Arma.Key) { ret.Add(3); } if (ret.Count > 0) { return(ret[lottery(1, ret.Count) - 1]); } else { return(0); } }
public void Start() { solution = new Teory() { Suspeito = lottery(rules.Suspeitos), Local = lottery(rules.Locais), Arma = lottery(rules.Armas) }; }