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:
parent
dbb26a2b51
commit
4eba716962
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user