mirror of
https://github.com/ltcptgeneral/cse151b-final-project.git
synced 2025-02-07 20:45:47 +00:00
20 lines
417 B
Python
20 lines
417 B
Python
from random import sample
|
|
from typing import List
|
|
|
|
from base import Strategy
|
|
from base import StrategyType
|
|
|
|
from utils import freq
|
|
|
|
class Random(Strategy):
|
|
def __init__(self):
|
|
self.words = freq.get_5_letter_word_freqs()
|
|
super().__init__(StrategyType.RANDOM)
|
|
|
|
def get_best_word(self, state: List[List[int]]):
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
r = Random()
|
|
print(r.get_best_word([])) |