{"size": 1138, "ext": "js", "max_stars_repo_path": "src/tetrominoes/shapesOfTetrominoes.js", "max_stars_repo_name": "EdAncerys/Tetris", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/tetrominoes/shapesOfTetrominoes.js", "max_issues_repo_name": "EdAncerys/Tetris", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/tetrominoes/shapesOfTetrominoes.js", "max_forks_repo_name": "EdAncerys/Tetris", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.6111111111, "max_line_length": 71, "alphanum_fraction": 0.4973637961}
'use strict';

function shapesOfTetrominoes(width) {
  const lTetromino = [
    [1, width + 1, width * 2 + 1, 2],
    [width, width + 1, width + 2, width * 2 + 2],
    [1, width + 1, width * 2 + 1, width * 2],
    [width * 2, width * 2 + 1, width * 2 + 2, width]
  ];
  const zTetromino = [
    [width * 2, width + 1, width * 2 + 1, width + 2],
    [0, width, width + 1, width * 2 + 1],
    [width * 2, width + 1, width * 2 + 1, width + 2],
    [0, width, width + 1, width * 2 + 1],
  ];
  const tTetromino = [
    [width * 1, 1, width + 1, width + 2],
    [1, width + 1, width + 2, width * 2 + 1],
    [width, width + 1, width * 2 + 1, width + 2],
    [1, width + 1, width, width * 2 + 1],
  ];
  const oTetromino = [
    [0, 1, width, width + 1],
    [0, 1, width, width + 1],
    [0, 1, width, width + 1],
    [0, 1, width, width + 1],
  ];
  const iTetromino = [
    [1, width + 1, width * 2 + 1, width * 3 + 1],
    [width, width + 1, width + 2, width + 3],
    [1, width + 1, width * 2 + 1, width * 3 + 1],
    [width, width + 1, width + 2, width + 3],
  ];
  return { lTetromino, zTetromino, tTetromino, oTetromino, iTetromino }
}
