๐ Lab Project 0 ๊ณผ์ ์ค๋ช
์ ๋ฆฌ
๐ Lab Project 0 ๊ตฌํ ๊ฒฐ๊ณผ ์ ๋ฆฌ
๐ Github ๋ ํฌ์งํ ๋ฆฌ ๊ฒฝ๋ก
Lab 0 ํ๋ก์ ํธ์ ์ฃผ์ ๊ณผ์ ๋ 2048 ๊ฒ์์ ์์ฑํ๋ ๊ฒ์
๋๋ค.
Model, emptySpaceExists, maxTileExists, atLeastOneMoveExists, tilt ๋ฅผ ๊ตฌํํ๊ณ , ํ
์คํธ๋ฅผ ํต๊ณผํด์ผ ํฉ๋๋ค.
Main tasks of the Lab Project 0 is to modify and complete the game 2048.
Especially, the model class, and the following methods - emptySpaceExists , maxTileExists , atLeastOneMoveExists and tilt.
As you might know, game rules of the 2048 go like this :
-
Two tiles of the same value merge into one tile containing double the initial number.
-
A tile that is the result of a merge will not merge again on that tilt.
โ ์ด๋ ํ ๊ฐ์ ์๋ฅผ ๊ฐ์ง ํ์ผ์ด 2๊ฐ๊ฐ ๋์ด๋, ๊ทธ ํด์ ์ด๋์ด ์ฃผ ๋ชฉ์ ์ด์ด์ ๋ฐ๋ก ๋ํด์ง์ง ์๋๋ค. -
When three adjacent tiles in the direction of motion have the same number, then the leading two tiles in the direction of motion merge, and the trailing tile does not.
โ ์ด๋๋ฐฉํฅ์ ํ/์ด๊ณผ ๊ฐ์ฅ ๊ทผ์ ํ ๋ ํ์ผ์ด ํฉ์ณ์ง๊ณ , ๊ฐ์ฅ ๋จผ ํ๋์ ํ์ผ์ ๋ํด์ง์ง ์๋๋ค.
๐ Lab Project 1 ๊ณผ์ ์ค๋ช
๐ Lab Project 1 ๊ตฌํ ๊ฒฐ๊ณผ ์ ๋ฆฌ
๐ Github ๋ ํฌ์งํ ๋ฆฌ ๊ฒฝ๋ก
Lab Project 1์ ์ฃผ์ ๊ณผ์ ๋ ์๋ฃ๊ตฌ์กฐ๋ฅผ ๊ตฌํํ๋ ๊ฒ์
๋๋ค.
Deque, LinkedListDeque, ArrayDeque, MaxArrayDeque ์๋ฃ๊ตฌ์กฐ๋ฅผ ์ง์ ๊ตฌํํ๊ณ , ํ
์คํธ๋ฅผ ์์ฑํ์ต๋๋ค.
For lab project 1, you should implement your own data structure.
Implement an interface Deque, then create a LinkedListDeque class and an ArrayDeque class that implements the Deque interface, and a MaxArrayDeque class extends ArraryDeque.