public void WriteHistoryInFile() { var historyFile = new DirectoryAndFileOfHistoryService(); var fullDirectoryName = historyFile.CreateDirectory(Settings.HistoryDirectoryPath, Settings.HistoryDirectorySubPath); var fullFileName = historyFile.CreateFile(Settings.HistoryFileName, fullDirectoryName); var historyService = new HistoryHelperService(); historyService.WriteHistoryListToFile(fullFileName, StaticCardHistoryList.History); }
public void GiveCard(Gamer gamer, List <OneCard> cardDeck) { OneCard someCard = CardDeckService.GetSomeCard(cardDeck); gamer.PlayersCard.Add(someCard); var historyHelperService = new HistoryHelperService(); historyHelperService.AddGameHistory(StaticCardHistoryList.History, gamer, someCard); int cardPoints = DictionaryOfCardPoints.CardPointDict[someCard.CardNumber]; gamer.Points += cardPoints; }