public RapperTinder(List <RapperSwearStats> rappers, Song unknowsong) { this.rappers = rappers; this.unknowsong = unknowsong; var songSwearStats = new SwearStats(); songSwearStats.AddSwearsFrom(unknowsong); foreach (var rapper in rappers) { var score = rapper.CompareWith(songSwearStats); Console.WriteLine(rapper.name + ":" + score + "points"); } }
static void Main(string[] args) { var EminemSwearStats = new SwearStats(); var song = new Song("Eminem", "Rap god"); EminemSwearStats.AddSwearsFrom(song); var censor = new Censor(); Console.WriteLine(censor.Fix(song.lyric)); Console.ReadLine(); }
public RaperTinder(List <RapperSwearStats> rappers, Song unknowSong) { this.rappers = rappers; this.unknowSong = unknowSong; var songSwearStats = new SwearStats(); songSwearStats.AddSwearsFrom(unknowSong); foreach (var rapper in rappers) { var score = rapper.FindCommonSwearsScore(songSwearStats); Console.WriteLine(" " + rapper.name + "{0,50}", " " + score + " points."); } }