add manual proxy program
This commit is contained in:
parent
e058363a52
commit
626e639f59
5 changed files with 76 additions and 21 deletions
|
@ -53,13 +53,13 @@ export class Guesser implements Guessing {
|
|||
return null;
|
||||
}
|
||||
|
||||
learn_does_not_exist(letter: string) {
|
||||
public learn_does_not_exist(letter: string) {
|
||||
const letter_info = this.informations.get(letter);
|
||||
assertExists(letter_info);
|
||||
letter_info.exists = false;
|
||||
}
|
||||
|
||||
learn_does_exist(letter: string) {
|
||||
public learn_does_exist(letter: string) {
|
||||
const letter_info = this.informations.get(letter);
|
||||
assertExists(letter_info);
|
||||
letter_info.exists = true;
|
||||
|
@ -68,7 +68,8 @@ export class Guesser implements Guessing {
|
|||
for (const info of this.informations.values()) if (info.exists === "unknown") info.exists = false;
|
||||
}
|
||||
|
||||
learn_letter_at(letter: string, at: number) {
|
||||
public learn_letter_at(letter: string, at: number) {
|
||||
this.learn_does_exist(letter);
|
||||
const letter_info = this.informations.get(letter);
|
||||
assertExists(letter_info);
|
||||
letter_info.at.add(at);
|
||||
|
@ -78,7 +79,7 @@ export class Guesser implements Guessing {
|
|||
}
|
||||
}
|
||||
|
||||
learn_letter_not_at(letter: string, at: number) {
|
||||
public learn_letter_not_at(letter: string, at: number) {
|
||||
const letter_info = this.informations.get(letter);
|
||||
assertExists(letter_info);
|
||||
letter_info.not_at.add(at);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue