diff options
author | pommicket <pommicket@gmail.com> | 2025-09-18 16:03:51 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-18 16:03:51 -0400 |
commit | c1394890e11336dec8f4f3e8b3a21fe34228ce18 (patch) | |
tree | 4b6a68f51a2667092a6a5fa7d6c2970187e776fa /extractor | |
parent | 7e359e4c8888c0630c4c7dda709b3fc041a18235 (diff) |
Score, stats, etc.
Diffstat (limited to 'extractor')
-rw-r--r-- | extractor/extractor.py | 5 |
1 files changed, 3 insertions, 2 deletions
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()) |