add move guesser interface
This commit is contained in:
parent
e2e2852739
commit
2e9c90dbca
6 changed files with 37 additions and 17 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.4/command/mod.ts";
|
||||
|
||||
import { Dict, Guesser, Runner, Simulator } from "./lib/lib.ts";
|
||||
import { BaseGuesser, Dict, Runner, Simulator } from "./lib/lib.ts";
|
||||
import { TableLogging } from "./lib/runner.ts";
|
||||
|
||||
import { francais } from "../data/data.ts";
|
||||
|
@ -28,7 +28,7 @@ async function main() {
|
|||
let dict = Dict.from_lines(francais, args.options.length);
|
||||
if (args.options.file !== undefined) dict = await Dict.from_text_file(args.options.file, args.options.length);
|
||||
|
||||
const guesser = new Guesser(dict);
|
||||
const guesser = new BaseGuesser(dict);
|
||||
const game = Simulator.from_dict_rand(dict);
|
||||
console.log("Target is", game.word);
|
||||
console.log();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue