# New variants
Landing pieces from empty board:
https://www.chessvariants.com/diffsetup.dir/unachess.html
+Parachute v1 & 2
Generator variant, called "Matrix" ?
Peces on first rank never move but generate new pieces. Pawn don't generate.
this.people[data.from] = { focus: true };
this.newConnect[data.from] = true; //for self multi-connects tests
this.send("askidentity", { target: data.from });
+ } else if (!this.people[data.from].focus) {
+ this.people[data.from].focus = true;
+ this.$forceUpdate(); //TODO: shouldn't be required
}
break;
case "disconnect":
this.people[data.from] = { pages: [{ path: page, focus: true }] };
else {
// Append page if not already in list
- if (!(this.people[data.from].pages.find(p => p.path == page)))
+ let ppage = this.people[data.from].pages.find(p => p.path == page);
+ if (!ppage)
this.people[data.from].pages.push({ path: page, focus: true });
+ else ppage.focus = true;
+ this.$forceUpdate(); //TODO: shouldn't be required
}
if (!this.people[data.from].name && this.people[data.from].id !== 0) {
// Identity not known yet
ArrayFun.remove(this.people[data.from].pages, p => p.path == page);
if (this.people[data.from].pages.length == 0)
this.$delete(this.people, data.from);
+ else this.$forceUpdate(); //TODO: shouldn't be required
// Disconnect means no more tmpIds:
if (data.code == "disconnect") {
// Remove the live challenges sent by this player: