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 6e21d6c

Browse files
Adjusted the Grid Size
1 parent e2c40c5 commit 6e21d6c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

‎src/Components/GridLayoutComponent.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class GridLayout extends Component {
6767

6868
gridRender() {
6969
const b = [];
70-
for (let row = 0; row < 27; row++) {
70+
for (let row = 0; row < 26; row++) {
7171
const currRow = [];
72-
for (let col = 0; col < 61; col++) {
72+
for (let col = 0; col < 60; col++) {
7373

7474
const val = {
7575
row,
@@ -98,9 +98,9 @@ class GridLayout extends Component {
9898

9999
grdRender(r, c) {
100100
const b = [];
101-
for (let row = 0; row < 27; row++) {
101+
for (let row = 0; row < 26; row++) {
102102
const currRow = [];
103-
for (let col = 0; col < 61; col++) {
103+
for (let col = 0; col < 60; 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 < 27; row++) {
135+
for (let row = 0; row < 26; row++) {
136136
const currRow = [];
137-
for (let col = 0; col < 61; col++) {
137+
for (let col = 0; col < 60; 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 < 27; row++) {
195+
for (let row = 0; row < 26; row++) {
196196
const currRow = [];
197-
for (let col = 0; col < 61; col++) {
197+
for (let col = 0; col < 60; 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 < 27; row++) {
228+
for (let row = 0; row < 26; row++) {
229229
const c = [];
230-
for (let col = 0; col < 61; col++) {
230+
for (let col = 0; col < 60; 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 < 27; row++) {
267+
for (let row = 0; row < 26; row++) {
268268
const c = [];
269-
for (let col = 0; col < 61; col++) {
269+
for (let col = 0; col < 60; col++) {
270270
const ran = Math.floor(Math.random() * 5 + 1);
271271
const box = this.state.boxes;
272272

‎src/css/gridblock.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
position: relative;
99
}
1010
.grid-container {
11-
11+
margin:10px0px0px;
1212
}
1313

1414
.start {

0 commit comments

Comments
(0)

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