Skip to content

DQN agent와 간단한 땅따먹기 게임

Notifications You must be signed in to change notification settings

myeongjinshin/DQN-Battle-2048

Repository files navigation

main_logo

AI Battle 2048 Game(Developing)

Area competition with AI in the 2048 game

Game Rules

This game is a modified of 2048 game.

The player and the AI take turns taking one action among up, down, left, and right.

There are two types of blocks in the game: player's blocks and AI's blocks.

If you combine two identical blocks, you get the block of the next level.

During your turn, you can combine your opponent's blocks with the same number of blocks. The merged block becomes yours.

Conversely, the AI may take your block.

Score

Each score is calculated as the sum of the scores of your blocks.

At this point, the score for the block increases exponentially.

The score for block 1 is 1. The score for block 2 is 2. The score for block 3 is 4. Block 4 has a score of 8.

This means that block i has a score of 2^(i-1).

Win and lose conditions

If your opponent's score is 10 times higher than your score, you lose.

If there is no action to change the state, the state called Stuck state. In Stuct state, the player with the highest score wins. If the score is the same, the person who made Stuck state is win.

Quick Setup

yarn install
npm run build
node server

Screenshots

initial

About

DQN agent와 간단한 땅따먹기 게임

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published