Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2c40c5

Browse files
Increased the Grid Size
1 parent 972b7e5 commit e2c40c5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎src/Components/GridLayoutComponent.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ class GridLayout extends Component {
9898

9999
grdRender(r, c) {
100100
const b = [];
101-
for (let row = 0; row < 20; row++) {
101+
for (let row = 0; row < 27; row++) {
102102
const currRow = [];
103-
for (let col = 0; col < 53; col++) {
103+
for (let col = 0; col < 61; col++) {
104104

105105
const val = {
106106
row,
@@ -132,9 +132,9 @@ class GridLayout extends Component {
132132

133133
gridRerender() {
134134
const b = [];
135-
for (let row = 0; row < 20; row++) {
135+
for (let row = 0; row < 27; row++) {
136136
const currRow = [];
137-
for (let col = 0; col < 53; col++) {
137+
for (let col = 0; col < 61; col++) {
138138

139139
const val = {
140140
row,
@@ -192,9 +192,9 @@ class GridLayout extends Component {
192192

193193
generateNewGridWithPreviousWalls() {
194194
const b = [];
195-
for (let row = 0; row < 20; row++) {
195+
for (let row = 0; row < 27; row++) {
196196
const currRow = [];
197-
for (let col = 0; col < 53; col++) {
197+
for (let col = 0; col < 61; col++) {
198198
const boxes = this.state.boxes;
199199
const node = boxes[row][col];
200200
const val = {
@@ -225,9 +225,9 @@ class GridLayout extends Component {
225225
randomGridGeneration() {
226226
const b = []
227227
if (!this.state.running) {
228-
for (let row = 0; row < 20; row++) {
228+
for (let row = 0; row < 27; row++) {
229229
const c = [];
230-
for (let col = 0; col < 53; col++) {
230+
for (let col = 0; col < 61; col++) {
231231
const ran = Math.floor(Math.random() * 5 + 1);
232232
const box = this.state.boxes;
233233

@@ -264,9 +264,9 @@ class GridLayout extends Component {
264264
randomWeightGeneration() {
265265
const b = []
266266
if (!this.state.running) {
267-
for (let row = 0; row < 20; row++) {
267+
for (let row = 0; row < 27; row++) {
268268
const c = [];
269-
for (let col = 0; col < 53; col++) {
269+
for (let col = 0; col < 61; col++) {
270270
const ran = Math.floor(Math.random() * 5 + 1);
271271
const box = this.state.boxes;
272272

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /