Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- grid[3][15].type not 0 (it's occupied), so placePiece() and make a newPiece().
- for (int i = 0;i < 4;i++)
- **** The sacred vars ****
- i: 0
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 0
- legend[piece.type].fetch(i, 1, piece.rotate): 0
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 14
- **** END ****
- 316:
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][4][4][ ][ ][ ][ ]
- [ ][ ][2][ ][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 1
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 1
- legend[piece.type].fetch(i, 1, piece.rotate): 0
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 14
- **** END ****
- 316:
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 2
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 1
- legend[piece.type].fetch(i, 1, piece.rotate): -1
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 14
- **** END ****
- 316:
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- Do they equal? false
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 3
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 0
- legend[piece.type].fetch(i, 1, piece.rotate): 1
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 14
- **** END ****
- 316:
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- for (int y = 0;y < 20;y++) {
- int empty = 0;
- for (int x = 0;x < 10;x++)
- grid[0][0].type is an empty space, so set variable empty to 1
- grid[0][1].type is an empty space, so set variable empty to 1
- grid[0][2].type is an empty space, so set variable empty to 1
- grid[0][3].type is an empty space, so set variable empty to 1
- grid[0][4].type is an empty space, so set variable empty to 1
- grid[0][5].type is an empty space, so set variable empty to 1
- grid[0][6].type is an empty space, so set variable empty to 1
- grid[0][7].type is an empty space, so set variable empty to 1
- grid[0][8].type is an empty space, so set variable empty to 1
- grid[0][9].type is an empty space, so set variable empty to 1
- grid[0][10].type is an empty space, so set variable empty to 1
- grid[0][11].type is an empty space, so set variable empty to 1
- grid[0][12].type is an empty space, so set variable empty to 1
- grid[0][13].type is an empty space, so set variable empty to 1
- grid[0][14].type is an empty space, so set variable empty to 1
- grid[0][15].type is an empty space, so set variable empty to 1
- grid[0][16].type is an empty space, so set variable empty to 1
- grid[0][17].type is an empty space, so set variable empty to 1
- grid[1][18].type is an empty space, so set variable empty to 1
- grid[2][19].type is an empty space, so set variable empty to 1
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- grid[3][13].type not 0 (it's occupied), so placePiece() and make a newPiece().
- for (int i = 0;i < 4;i++)
- **** The sacred vars ****
- i: 0
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 0
- legend[piece.type].fetch(i, 1, piece.rotate): 0
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 12
- **** END ****
- 316:
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][ ][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 1
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 1
- legend[piece.type].fetch(i, 1, piece.rotate): 0
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 12
- **** END ****
- 316:
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 2
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 1
- legend[piece.type].fetch(i, 1, piece.rotate): -1
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 12
- **** END ****
- 316:
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- **** The sacred vars ****
- i: 3
- legend[piece.type].block.length: 4
- legend[piece.type].fetch(i, 0, piece.rotate): 0
- legend[piece.type].fetch(i, 1, piece.rotate): 1
- piece.type: 1
- piece.rotate: 0
- x: 2
- y: 12
- **** END ****
- 316:
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][ ][ ][ ][ ][ ][ ]
- [ ][ ][2][2][4][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][2][2][2][4][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [ ][ ][ ][2][2][ ][ ][ ][ ][ ]
- [7][ ][ ][2][7][4][4][4][6][6]
- [7][1][ ][7][7][4][2][5][6][6]
- Do they equal? false
- for (int y = 0;y < 20;y++) {
- int empty = 0;
- for (int x = 0;x < 10;x++)
- grid[0][0].type is an empty space, so set variable empty to 1
- grid[0][1].type is an empty space, so set variable empty to 1
- grid[0][2].type is an empty space, so set variable empty to 1
- grid[0][3].type is an empty space, so set variable empty to 1
- grid[0][4].type is an empty space, so set variable empty to 1
- grid[0][5].type is an empty space, so set variable empty to 1
- grid[0][6].type is an empty space, so set variable empty to 1
- grid[0][7].type is an empty space, so set variable empty to 1
- grid[0][8].type is an empty space, so set variable empty to 1
- grid[0][9].type is an empty space, so set variable empty to 1
- grid[0][10].type is an empty space, so set variable empty to 1
- grid[0][11].type is an empty space, so set variable empty to 1
- grid[0][12].type is an empty space, so set variable empty to 1
- grid[0][13].type is an empty space, so set variable empty to 1
- grid[0][14].type is an empty space, so set variable empty to 1
- grid[0][15].type is an empty space, so set variable empty to 1
- grid[0][16].type is an empty space, so set variable empty to 1
- grid[0][17].type is an empty space, so set variable empty to 1
- grid[1][18].type is an empty space, so set variable empty to 1
- grid[2][19].type is an empty space, so set variable empty to 1
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement