Private
Public Access
1
0

chg: usr: make the first working version - the stepping is broken due to the algorythm structure #4

This commit is contained in:
2026-04-09 12:10:37 +02:00
parent dd4b410624
commit fa0fc0743d
51 changed files with 8355 additions and 55172 deletions

View File

@@ -398,10 +398,6 @@ class GridControl extends React.Component {
}
}
overlayClass() {
return 'game-overlay' + (this.state.overlay ? '' : ' hide');
}
renderGridFields() {
for (let i = 0, j = this.state.grid.length; i < j; i++) {
for (let k = 0, l = this.state.grid[i].length; k < l; k++) {
@@ -409,7 +405,7 @@ class GridControl extends React.Component {
<GridField row={i}
col={k}
ref={this.refString(i, k)}
key={window.btoa((Math.random() * 0.5).toString())}
key={this.refString(i, k)}
handleHoverOn={this.onHoverGridField.bind(this, [i, k])}
onClick={this.props.onClick.bind(null, [i, k])}/>
);
@@ -424,7 +420,7 @@ class GridControl extends React.Component {
return (
<div className="game-wrapper">
<div className={this.overlayClass()}>
<div className={`game-overlay ${this.state.overlay ? '' : ' hide'}`}>
<div className="game-overlay-window">
<h1>{this.state.overlayTitle}</h1>
<h2>{this.state.overlaySubTitle}</h2>