From c1394890e11336dec8f4f3e8b3a21fe34228ce18 Mon Sep 17 00:00:00 2001 From: pommicket Date: Thu, 18 Sep 2025 16:03:51 -0400 Subject: Score, stats, etc. --- extractor/extractor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'extractor') diff --git a/extractor/extractor.py b/extractor/extractor.py index da16717..ed58921 100644 --- a/extractor/extractor.py +++ b/extractor/extractor.py @@ -152,8 +152,9 @@ for filename in args.log_files: if fields[3] == '?': game = games[game_id] plays = game.blank_plays() - nice_plays = [play for play in plays if is_nice(play)] - # require at least 3 plays that make 5+-letter words + nice_plays = {play[0] for play in plays if is_nice(play)} + print(nice_plays) + # require at least 3 squares that make 5+-letter words if len(nice_plays) >= 3: game.output(f'{output_dir}/{game_idx:05}.txt') print(game.board_string()) -- cgit v1.2.3