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
c718d1b2abc1a0578c79e03644fd41dd794f7c4d
parent
76d54f6f82296053b2b59bc0d27b419a7c5b9148
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-10-20 12:43
render scenario description

Diffstat

M src/index.js 1 +
M src/template.js 1 +

2 files changed, 2 insertions, 0 deletions


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

@@ -111,6 +111,7 @@ on('click', '.js-menu-scenario', function(state) {
  111   111     const i = parseInt(this.dataset.scenario, 10);
  112   112     state.game = {
  113   113         board: clone(scenarios[i].board),
   -1   114         description: scenarios[i].description,
  114   115         currentPlayer: 1,
  115   116         playing: false,
  116   117         steps: 0,

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

@@ -53,6 +53,7 @@ export default function(state) {
   53    53     if (state.game) {
   54    54         return h('div', {}, [
   55    55             renderControls(state),
   -1    56             h('p', {}, state.game.description),
   56    57             renderBoard(state),
   57    58         ]);
   58    59     } else {