Fixing game of life program (#712)

There is a bug in decompiler which omits the entire scoped variable set. This is a patch fix until that bug is fixed.
This commit is contained in:
Abhijith Chatra 2018-03-14 16:53:01 -07:00 committed by Peli de Halleux
parent dbb26a2b51
commit 4eba716962

View File

@ -62,10 +62,11 @@ function show() {
//Core function
function gameOfLife() {
let result: boolean[] = [];
let count = 0;
for (let x = 0; x < 5; x++) {
for (let y = 0; y < 5; y++) {
let count = 0;
count = 0;
//Count the live cells in the next row
if ((x + 1) < 5) {
@ -121,4 +122,4 @@ function gameOfLife() {
//Initial reset & show
reset();
show();
```
```