Skip to content

2048 is a single-player sliding tile puzzle video game written by Italian web developer Gabriele Cirulli and published on GitHub. The objective of the game is to slide numbered tiles on a grid to combine them to create a tile with the number 2048... (Source: Wikipedia)

License

Notifications You must be signed in to change notification settings

Meluiscruz/Twenty_Forty_Eight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twenty Forty Eight

The classical cell-merging-smartphone game, now for Desktop Enviroments.

Demo

Project metrics

Stars Forks Issues Tags

How to run an play

  1. Download the project
  2. Open a CLI on the project directory and enter the following: python main.py
  3. A 4x4 window will be opened after you enter the command
  4. Use your arrow keys to move the tiles. Tiles with the same number merge into one when they touch. Add them up to reach 2048!

Scope of the project

This code is an Oriented Object Program that shows the applications and structure of this paradigm. You can check how this code was build in the following link.

Table of Contents

  • colors.py: This file contains the graphical properties of the game (colors, fonts, size, etc).

  • main.py: This file is the main piece of code of the project.

Technical information

I used VSCode as source-code editor. Also, I have employed the following modules listed in main.py header:

  • tkinter for Graphic User Interfaces
  • random to place cell values randomly at the begining of the game.

About

2048 is a single-player sliding tile puzzle video game written by Italian web developer Gabriele Cirulli and published on GitHub. The objective of the game is to slide numbered tiles on a grid to combine them to create a tile with the number 2048... (Source: Wikipedia)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages