Added translation to Russian. Fixed non-standard lamda in crossword generating. Added release builder script

This commit is contained in:
2015-07-23 22:53:56 +03:00
parent fb3a3fb19a
commit da28a8687f
11 changed files with 457 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ void generateAllWords(const DictType &dict, AllWordsType &words_out,
// else return points for scoreng. More = better
// TODO: improve formula
std::function< int(const wxString& ) > getWordScore = [freqs, freqs_sorted, char_cnt]
(const wxString &s){
(const wxString &s) -> int{
double score = 1;
for (auto ch: s)
score *= static_cast<double>(freqs.at(ch))/char_cnt;