src/App.js
// event for "New Puzzle Button" 
event for "New Puzzle Button"
event for " New Puzzle Button "
newPuzzle() {
    this.initVariables();
    let inputCheckingDummyData = [
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', ''],
      ['', '', '', '', '', '', '', '', '']
    ];
    this.setState({inputCheckingDummyData: inputCheckingDummyData});
    this.setState({drawFlag: false});
  }
newPuzzle ( ) { this . initVariables ( ) ; let inputCheckingDummyData = [ [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] , [ '' , '' , '' , '' , '' , '' , '' , '' , '' ] ] ; this . setState ( { inputCheckingDummyData : inputCheckingDummyData } ) ; this . setState ( { drawFlag : false } ) ; }
event for "New Puzzle Button"
event for " New Puzzle Button "