구름톤 챌린지


log


Author: brixxt27 <[email protected]>
Date:   Sat Aug 26 00:32:12 2023 +0900

    feat: rawBoard 에 입력 받는 것 빼고 입력 구현
    
    이차원 배열 내에 각 항목은 다음과 같이 객체가 있을 것이다.
    {
            count: 숫자
            command: 문자
            player: true/false
            goormi: true/false
    }

설계


week2 git:(main) ✗ node day10.js
4
4 2
2 4
1L 3D 3L 1U
2D 2L 4U 1U
2D 2L 4U 3L
4D 4D 1R 4R
[
  [
    Area { count: 1, command: 'L', player: false, goormi: false },
    Area { count: 3, command: 'D', player: false, goormi: false },
    Area { count: 3, command: 'L', player: false, goormi: false },
    Area { count: 1, command: 'U', player: false, goormi: false }
  ],
  [
    Area { count: 2, command: 'D', player: false, goormi: false },
    Area { count: 2, command: 'L', player: false, goormi: false },
    Area { count: 4, command: 'U', player: false, goormi: false },
    Area { count: 1, command: 'U', player: false, goormi: false }
  ],
  [
    Area { count: 2, command: 'D', player: false, goormi: false },
    Area { count: 2, command: 'L', player: false, goormi: false },
    Area { count: 4, command: 'U', player: false, goormi: false },
    Area { count: 3, command: 'L', player: false, goormi: false }
  ],
  [
    Area { count: 4, command: 'D', player: false, goormi: false },
    Area { count: 4, command: 'D', player: false, goormi: false },
    Area { count: 1, command: 'R', player: false, goormi: false },
    Area { count: 4, command: 'R', player: false, goormi: false }
  ]
]

생각해볼 거리