윤호석
이강호
김태훈
이성호
파트분배
6/30 ~ 07/07 서버 단위 계획표
BackEnd Schema
부하테스트 시나리오
Commit Convention
- feat : 기능개발
- chore : 패키지 이동, 의존성 추가
- docs: 문서화 작업
- refactor : 기능 변경
- fix: 에러 수정
- style : 코드에 지장없는 변경
// 특정 순서로 블록을 생성하기 위한 배열
private readonly PIECE_SEQUENCE = [
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
PIECES[0],
PIECES[3],
PIECES[1],
PIECES[6],
PIECES[4],
PIECES[5],
PIECES[2],
];
// createNewBag(): Piece[] {
// const bag = PIECES.slice(0, 7).map(
// piece => new Piece(piece.shape, piece.color, this),
// );
// console.log("=============가방=============");
// console.log(bag);
// console.log("============================");
// for (let i = bag.length - 1; i > 0; i--) {
// const j = Math.floor(Math.random() * (i + 1));
// [bag[i], bag[j]] = [bag[j], bag[i]];
// }
// return bag;
// }
createNewBag(): Piece[] {
const bag = this.PIECE_SEQUENCE.map(
piece => new Piece(piece.shape, piece.color, this),
);
// 이미 정해진 순서이므로 섞지 않습니다.
return bag;
}