From 88394101a513cf41dd4af1bb46881e7ae78bcf9f Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 7 May 2022 18:15:13 +0200 Subject: Add RPS --- tictactoe/morpion/base.js | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'tictactoe/morpion/base.js') diff --git a/tictactoe/morpion/base.js b/tictactoe/morpion/base.js index b5db1d2..7bb8fd2 100755 --- a/tictactoe/morpion/base.js +++ b/tictactoe/morpion/base.js @@ -215,5 +215,20 @@ function airevrand() { } window.addEventListener("load", () => { - if (location.hash === "#/train") train(); -}); + if (location.hash === "#/train") { + train(); + } + if (!location.hash.startsWith("#online/")) { + document.getElementById("resetbtn").style.display = "none"; + } + + if (location.hash === "#/train") { + document.title = "Local Game | Tic-Tac-Toe | Minteck Arcade"; + } else if (location.hash.startsWith("#online/")) { + document.title = "Online Game | Tic-Tac-Toe | Minteck Arcade"; + } else if (location.hash === "#/auto") { + document.title = "Automated machine learning | Tic-Tac-Toe | Minteck Arcade"; + } else { + document.title = "Singleplayer Game | Tic-Tac-Toe | Minteck Arcade"; + } +}); \ No newline at end of file -- cgit