# Winning 2048 Game Using Deep Reinforcement Learning

- Speaker: [Eyal Altshuler](/wiki/speakers/eyal-altshuler.md)
- Event: [Reversim Summit 2018](/wiki/years/2018.md)
- Video: https://www.youtube.com/watch?v=JhBA-NhV1Eo
- Transcript: [/transcripts/2018/43-JhBA-NhV1Eo.md](/transcripts/2018/43-JhBA-NhV1Eo.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [Algorithms](/wiki/topics/algorithms.md), [Game Development](/wiki/topics/game-development.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores how the speaker used deep reinforcement learning to build an algorithm capable of playing and winning the 2048 game. The speaker shares the journey from identifying human play patterns on a daily commute to translating those concepts into machine learning models. The audience learns how reinforcement learning agents make decisions, balance short-term gains with long-term strategy, and learn through environmental feedback.

## Key points

- [0:12](https://www.youtube.com/watch?v=JhBA-NhV1Eo&t=12s) The speaker noticed repeating patterns and the importance of planning ahead while playing the 2048 game on the bus.
- [1:12](https://www.youtube.com/watch?v=JhBA-NhV1Eo&t=72s) Reinforcement learning was introduced as a method where algorithms receive environmental feedback to make decisions, mirroring human learning.
- [2:12](https://www.youtube.com/watch?v=JhBA-NhV1Eo&t=132s) After beating the game manually using strategic concepts like keeping high-value tiles in corners, the speaker questioned if an algorithm could do the same.
- [3:12](https://www.youtube.com/watch?v=JhBA-NhV1Eo&t=192s) Deep reinforcement learning was chosen as the approach, querying the model at each step for the best move and using the resulting board state for training.
- [4:12](https://www.youtube.com/watch?v=JhBA-NhV1Eo&t=252s) A key challenge in reinforcement learning is balancing short-term rewards against long-term strategic advantages.

## Takeaways

- Identify human intuition and patterns before trying to automate them with algorithms.
- Use reinforcement learning when agents need to learn optimal decision-making through trial and environmental feedback.
- Design models that can successfully balance immediate rewards with long-term strategic goals.

## Questions this talk answers

- How can deep reinforcement learning be applied to turn-based puzzle games like 2048?
- How do reinforcement learning models balance short-term rewards with long-term strategies?
- What is the process of training a model using game board states and environmental feedback?

## Tags

algorithms, deep learning, game ai, machine learning, reinforcement learning
