Skip to content

Commit

Permalink
Fix a spelling mistake and update a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Dec 29, 2024
1 parent 73d62bc commit e3de83e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ui/analyse/src/study/studyCtrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default class StudyCtrl {
this.ctrl.flipped = this.chapterFlipMapProp(this.data.chapter.id);
if (this.members.canContribute()) this.form.openIfNew();

this.instanciateGamebookPlay();
this.instantiateGamebookPlay();

window.addEventListener('popstate', () => window.location.reload());
}
Expand Down Expand Up @@ -349,7 +349,7 @@ export default class StudyCtrl {
this.configureAnalysis();
this.vm.loading = false;

this.instanciateGamebookPlay();
this.instantiateGamebookPlay();

let nextPath: Tree.Path;

Expand Down Expand Up @@ -399,7 +399,7 @@ export default class StudyCtrl {
bottomColor = () =>
this.ctrl.flipped ? opposite(this.data.chapter.setup.orientation) : this.data.chapter.setup.orientation;

instanciateGamebookPlay = () => {
instantiateGamebookPlay = () => {
if (!this.isGamebookPlay()) return (this.gamebookPlay = undefined);
// ensure all original nodes have a gamebook entry,
// so we can differentiate original nodes from user-made ones
Expand Down Expand Up @@ -587,7 +587,7 @@ export default class StudyCtrl {
};
setGamebookOverride = (o: GamebookOverride) => {
this.vm.gamebookOverride = o;
this.instanciateGamebookPlay();
this.instantiateGamebookPlay();
this.configureAnalysis();
this.ctrl.userJump(this.ctrl.path);
if (!o) this.xhrReload();
Expand Down
2 changes: 1 addition & 1 deletion ui/game/src/view/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function expandFen(fullFen: FEN): string {
}

export function insufficientMaterial(variant: VariantKey, fullFen: FEN): boolean {
// TODO: atomic and antichess
// TODO: atomic, antichess, threeCheck
if (
variant === 'horde' ||
variant === 'kingOfTheHill' ||
Expand Down

0 comments on commit e3de83e

Please sign in to comment.