Git Product home page Git Product logo

puzzle-2048's Introduction

Puzzle 2048

This is a web-based implementation of the popular puzzle game 2048, written in JavaScript and HTML/CSS. The game is played by sliding numbered tiles on a grid to combine them and create a tile with the number 2048.

Features

  • Simple and intuitive design
  • Smooth and responsive gameplay
  • Support for keyboard and swipe-based controls
  • Automatic saving of game progress

Simple and Intuitive Design

The game features a simple and intuitive design, with a clean and easy-to-use interface that allows players to focus on the gameplay. The game board is displayed prominently on the screen, with colorful tiles that are easy to distinguish.

Smooth and Responsive Gameplay

The game is designed to be smooth and responsive, with fast animations and minimal lag. The game board updates in real-time as tiles are moved and combined, creating a satisfying and immersive gameplay experience.

Support for Keyboard and Swipe-based Controls

The game supports both keyboard and swipe-based controls, making it easy to play on a variety of devices. Players can use the arrow keys on their keyboard to move the tiles, or swipe left, right, up, or down on their touchscreen devices.

Automatic Saving of Game Progress

The game automatically saves the player's progress, allowing them to continue where they left off even if they close their browser or navigate away from the page.

Getting Started

To play the game, simply visit the GitHub Pages site at https://ibra-kdbra.github.io/Puzzle-2048/. Use the arrow keys or swipe gestures to move the tiles around the game board and combine them to reach the target number of 2048.

Credits

Conclusion

This implementation of the 2048 puzzle game is a great example of how JavaScript and HTML/CSS can be used to create simple and engaging games for the web. By exploring the code in this repository, you can learn how to create responsive and interactive user interfaces, handle user input, and implement game logic using JavaScript.

puzzle-2048's People

Contributors

ibra-kdbra avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.