doggo-quest-logic
Version:
The game logic for the Doggo Quest text-based game sample project
14 lines (13 loc) • 388 B
TypeScript
import { Word } from './Word';
export declare class Sentence {
text: string;
constructor();
readonly verbWord: Word | undefined;
readonly verb: string | undefined;
readonly target: Word | undefined;
words: Word[];
readonly rootWords: Word[];
addWord(word: Word): void;
validate(): string | undefined;
assumeVerb(verb: string): void;
}