add move guesser interface

This commit is contained in:
JOLIMAITRE Matthieu 2024-04-30 18:47:49 +02:00
parent e2e2852739
commit 2e9c90dbca
6 changed files with 37 additions and 17 deletions

View file

@ -1,6 +1,6 @@
import { assertExists } from "https://deno.land/std@0.224.0/assert/assert_exists.ts";
import { Guessing } from "./guesser.ts";
import { Guessing } from "./guesser/guesser.ts";
import { Gaming, GuessResult } from "./game/game.ts";
import { last, wait } from "./utils.ts";
@ -55,7 +55,7 @@ interface LoggingStrategy {
}
export class VerboseLogging implements LoggingStrategy {
on_start(length: number) {}
on_start(_length: number) {}
on_guess(known: string, guess: string, result: GuessResult): void {
console.log(" Knows:", known);