@@ -147,7 +147,7 @@ <h4 class="modal-title">Notes to myself</h4>
147
147
for ( x = 0 ; x < size_x ; x ++ ) {
148
148
var val = 0 ; //Math.floor(Math.random() * 2);
149
149
myMap [ y ] [ x ] = { y : y , x : x , visited : false , redraw : false , val : val , bNum : val , blasted : false , flag :false } ;
150
- console . info ( "x:" + x + " y:" + y + " val :" + val ) ;
150
+ // console.info("x:" +x + " y:" +y + " val :"+val);
151
151
}
152
152
}
153
153
@@ -162,7 +162,7 @@ <h4 class="modal-title">Notes to myself</h4>
162
162
163
163
//set a bomb
164
164
myMap [ y ] [ x ] . val = 1 ;
165
- console . info ( "x:" + x + " y:" + y + " val :" + val ) ;
165
+ // console.info("x:" +x + " y:" +y + " val :"+val);
166
166
167
167
//mark adjacent spaces
168
168
// y-1,x-1 y-1, x y-1,x+1
@@ -255,10 +255,12 @@ <h4 class="modal-title">Notes to myself</h4>
255
255
return ;
256
256
257
257
258
+ /*
258
259
console.info("==>exploreLand:"
259
260
+ " visited:" + myMap[y][x].visited
260
261
+ " val:" + myMap[y][x].val
261
262
);
263
+ */
262
264
263
265
//did we visit this place before?
264
266
if ( myMap [ y ] [ x ] . visited )
@@ -377,7 +379,7 @@ <h4 class="modal-title">Notes to myself</h4>
377
379
} ;
378
380
379
381
const bombStyle = {
380
- fontSize : '24px ' ,
382
+ fontSize : '25px ' ,
381
383
} ;
382
384
383
385
@@ -393,18 +395,18 @@ <h4 class="modal-title">Notes to myself</h4>
393
395
}
394
396
395
397
handleClick ( e ) {
396
- console . info ( "-->handleClick:" + this . state . y + "," + this . state . x ) ;
397
- console . log ( event . type ) ;
398
+ // console.info("-->handleClick:" + this.state.y +"," + this.state.x);
399
+ // console.log(event.type);
398
400
399
401
//we don't want browsers context menu to be displayed
400
402
e . preventDefault ( ) ;
401
403
402
404
403
405
if ( e . type === 'click' ) {
404
- console . log ( 'Left click' ) ;
406
+ // console.log('Left click');
405
407
exploreLand ( this . state . y , this . state . x ) ;
406
408
} else if ( e . type === 'contextmenu' ) {
407
- console . log ( 'Right click' ) ;
409
+ // console.log('Right click');
408
410
flagLand ( this . state . y , this . state . x ) ;
409
411
}
410
412
}
@@ -414,7 +416,7 @@ <h4 class="modal-title">Notes to myself</h4>
414
416
//console.info("mounted-->" + this.state.y + "," + this.state.x);
415
417
this . timerID = setInterval (
416
418
( ) => this . tick ( ) ,
417
- 500
419
+ 100
418
420
) ;
419
421
}
420
422
0 commit comments