game-of-death

antagonistic game of life  https://xi.github.io/game-of-death/
git clone https://git.ce9e.org/game-of-death.git

commit
4048050085296969c7941b50bda6515b7d3cff4b
parent
0ea2e2856230d7c824d994951bd006a69a400508
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-26 14:19
add spaces between board controls

Diffstat

M src/template.js 10 ++++++++++

1 files changed, 10 insertions, 0 deletions


diff --git a/src/template.js b/src/template.js

@@ -21,19 +21,29 @@ const renderControls = function(state) {
   21    21     if (state.game.sandbox) {
   22    22         return h('div', {'class': 'board-controls'}, [
   23    23             h('input', {type: 'range', value: 50, name: 'speed'}),
   -1    24             ' ',
   24    25             h('input', {type: 'number', value: 1, name: 'steps'}),
   -1    26             ' ',
   25    27             h('button', {'class': 'js-next-gen'}, 'Next Gen'),
   -1    28             ' ',
   26    29             h('button', {'class': 'js-play'}, state.game.playing ? 'Pause' : 'Play'),
   -1    30             ' ',
   27    31             h('button', {'class': 'js-current-player fg-' + state.game.currentPlayer}, 'Current Player'),
   -1    32             ' ',
   28    33             h('button', {'class': 'js-export'}, 'Export'),
   -1    34             ' ',
   29    35             h('button', {'class': 'js-quit'}, 'Quit'),
   30    36         ]);
   31    37     } else {
   32    38         return h('div', {'class': 'board-controls'}, [
   33    39             h('input', {type: 'range', value: 50, name: 'speed'}),
   -1    40             ' ',
   34    41             h('input', {type: 'hidden', value: 50, name: 'speed'}),
   -1    42             ' ',
   35    43             h('input', {type: 'hidden', value: 1, name: 'steps'}),
   -1    44             ' ',
   36    45             h('button', {'class': 'js-play'}, state.game.playing ? 'Pause' : 'Play'),
   -1    46             ' ',
   37    47             h('button', {'class': 'js-quit'}, 'Quit'),
   38    48         ]);
   39    49     }