time control

This commit is contained in:
ntr
2019-06-08 15:53:34 +10:00
parent a3d596a9b2
commit be427f2271
4 changed files with 72 additions and 46 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ function Instance(args) {
}
function ScoreBoard() {
if (instance.phase !== 'Lobby') return null;
if (instance.phase === 'InProgress') return null;
const players = instance.players.map((p, i) => {
const pText = playerText(p);
+20 -17
View File
@@ -56,23 +56,26 @@ class InstanceCreateForm extends Component {
return (
<div class={classes}>
<form>
<label>instance name</label>
<input
class="login-input"
type="text"
disabled={disabled}
value={this.state.name}
placeholder="game name"
onInput={this.nameInput}
/>
<label htmlFor="pveSelect">vs CPU</label>
<input id="pveSelect"
type="checkbox"
disabled={disabled}
checked={this.state.pve}
onChange={this.pveChange}
>
</input>
<fieldset>
<legend>New Instance</legend>
<label>instance name</label>
<input
class="login-input"
type="text"
disabled={disabled}
value={this.state.name}
placeholder="game name"
onInput={this.nameInput}
/>
<label htmlFor="pveSelect">Practice Mode - Bo10, vs CPU, 2x turn time</label>
<input id="pveSelect"
type="checkbox"
disabled={disabled}
checked={this.state.pve}
onChange={this.pveChange}
>
</input>
</fieldset>
</form>
<button
onClick={this.handleSubmit}