wordle/src/targets.ts

14 lines
290 B
TypeScript
Raw Normal View History

2023-09-03 12:37:05 +02:00
import { random } from "./lib/random";
const targets = TARGETS.split(',');
export function getForNWord(len: number) {
let out = [];
for (const target of targets) {
if (target.length != len) continue;
out.push(target);
}
return out
}
export default targets