p= translations["Waiting for opponent..."]
*/
+
+
+
+// TODO: my-challenge-list, gérant clicks sur challenges, affichage, réception/émission des infos sur challenges
+// de même, my-player-list
+
+
+
+
+// TODO: si on est en train de jouer une partie, le notifier aux nouveaux connectés
+
/*
Players + challenges : == "room" home of variant (surligner si nouveau défi perso et pas affichage courant)
joueurs en ligne (dte),
if (mode=="human" && !oppId)
{
const storageVariant = localStorage.getItem("variant");
- if (!!storageVariant && storageVariant !== variant
+ if (!!storageVariant && storageVariant !== variant.name
&& localStorage["score"] == "*")
{
return alert(translations["Finish your "] +
if (!!storageVariant)
{
const score = localStorage.getItem(prefix+"score");
- if (storageVariant !== variant && score == "*")
+ if (storageVariant !== variant.name && score == "*")
{
if (!confirm(storageVariant +
translations[": unfinished computer game will be erased"]))
if (!!storageVariant)
{
const score = localStorage.getItem(prefix+"score");
- if (storageVariant !== variant && score == "*")
+ if (storageVariant !== variant.name && score == "*")
{
if (!confirm(storageVariant +
translations[": current analysis will be erased"]))