Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Story
How we grew from 0 to 3 million users
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Coding Challenge #94: 2048 - Part 3

31.6K views
•
February 28, 2018
by
The Coding Train
YouTube video player
Coding Challenge #94: 2048 - Part 3

TL;DR

In this coding challenge, the content creator adds features to a 2048 game, including a score counter, a game over check, adjusting font size based on tile value, and experimenting with colors.

Transcript

part three of my 2048 coding challenge so what am I trying what do I got here I actually have it's very hard to follow without animations and not maybe I'll come back and add animations in another part but I have the full game mechanic available to play right now so the things that I want to add in this video are number one score number two a test ... Read More

Key Insights

  • 🛤️ The score in the 2048 game increases with each combination of tiles, providing a way to track the player's progress.
  • 👾 The game over condition is determined by checking for no identical adjacent tiles and no empty spots on the board.
  • 👾 Adjusting the font size of the tiles based on their value can enhance the visual experience of the game.
  • 👾 The content creator acknowledges that their implementation can be improved, such as adding color mapping and animations to make the game more engaging.
  • 👾 Viewers are encouraged to create their own versions of the game and make improvements based on their creativity and coding skills.
  • 🆘 Using logarithmic scaling can help in adjusting the font size exponentially, providing a better visual representation of tile values.
  • 🖤 The content creator mentions the need for better code organization and structure, as the current implementation is not optimized and lacks modularity.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does the score increase in the 2048 game?

The score increases whenever two tiles are combined, with the value of the combined tiles being added to the score.

Q: How is the game over condition checked in the 2048 game?

The game over condition is checked by looping through each tile on the board and ensuring that there are no identical adjacent tiles and no empty spots on the board.

Q: How is the font size of the tiles adjusted in the 2048 game?

The font size of the tiles is dynamically adjusted based on their value, with higher value tiles having smaller font sizes for a more visually appealing effect.

Q: Are there any limitations or improvements mentioned for the implementation of the 2048 game?

The content creator mentions that there are better ways to implement features like mapping colors to tiles and animating the game. They invite viewers to make their own versions and improve upon their implementation.

Summary & Key Takeaways

  • The content creator adds a score counter to the 2048 game, where the score increases whenever two tiles are combined.

  • They implement a game over check to determine if there are no more moves available and the board is full.

  • The font size of the tiles is adjusted dynamically based on their value to make the game more visually appealing.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

How to Create Fractal Patterns with Toothpicks thumbnail
How to Create Fractal Patterns with Toothpicks
The Coding Train
Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
ITP/IMA Winter Show 2019 thumbnail
ITP/IMA Winter Show 2019
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
ITP/IMA Winter Show 2018 thumbnail
ITP/IMA Winter Show 2018
The Coding Train
Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots
  • Open Graph Checker

Company

  • About us
  • Our Story
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.