Skip to content

Latest commit

ย 

History

History
48 lines (28 loc) ยท 2.61 KB

File metadata and controls

48 lines (28 loc) ยท 2.61 KB

๐Ÿ“– Object Oriented Programming ๊ฐ์ฒด์ง€ํ–ฅํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ณผ์ œ


1. Lab Project 0 - 2048 Game

๐Ÿ“Œ 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 :
  1. Two tiles of the same value merge into one tile containing double the initial number.

  2. A tile that is the result of a merge will not merge again on that tilt.
    โ†’ ์ด๋™ ํ›„ ๊ฐ™์€ ์ˆ˜๋ฅผ ๊ฐ€์ง„ ํƒ€์ผ์ด 2๊ฐœ๊ฐ€ ๋˜์–ด๋„, ๊ทธ ํ„ด์€ ์ด๋™์ด ์ฃผ ๋ชฉ์ ์ด์–ด์„œ ๋ฐ”๋กœ ๋”ํ•ด์ง€์ง€ ์•Š๋Š”๋‹ค.

  3. 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.
    โ†’ ์ด๋™๋ฐฉํ–ฅ์˜ ํ–‰/์—ด๊ณผ ๊ฐ€์žฅ ๊ทผ์ ‘ํ•œ ๋‘ ํƒ€์ผ์ด ํ•ฉ์ณ์ง€๊ณ , ๊ฐ€์žฅ ๋จผ ํ•˜๋‚˜์˜ ํƒ€์ผ์€ ๋”ํ•ด์ง€์ง€ ์•Š๋Š”๋‹ค.



2. Lab Project 1 - ์ž๋ฃŒ๊ตฌ์กฐ ๊ตฌํ˜„ (Deque, LinkedListDeque, ArrayDeque, MaxArrayDeque)

๐Ÿ“Œ 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.