import AbstractView from "./abstracts/AbstractView.js"; import { lang } from "../index.js"; import { TicTacToe } from "../api/game/TicTacToeGame.js" export default class extends AbstractView { constructor(params, titleKey) { super(params, lang.get('ticTacToeTitle')); this.params = params; this.titleKey = titleKey; this.height = 660; this.width = 660; } async postInit() { this.Morpion = new TicTacToe(this.height, this.width, 60, 60, document.getElementById("Morpion")); this.Morpion.DrawSuperMorpion(); } async leavePage() { } setTitle() { document.title = lang.get(this.titleKey, this.titleKey); } async getHtml() { return `

Work in progress bozo

`; } }