GithubHelp home page GithubHelp logo

abirhasan2005 / 2048 Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 65 KB

This is a Python3 based 2048 Game. Easy to play. Runs with WASD. W = UP, A = LEFT, S = DOWN, D = RIGHT

Python 100.00%
linux 2048-game 2048 2048-solver game python3 pygame

2048's Introduction

2048

This is a Python3 based 2048 Game. Easy to play. Runs with WASD. W = UP, A = LEFT, S = DOWN, D = RIGHT

There are two 2048 varients in this repository:

One is 2048.py

screenshot

2048.py is for Linux, Windows & Mac. Can control with W = UP, A = LEFT, S = DOWN, D = RIGHT or I = UP, J = LEFT, K = DOWN, L = RIGHT.

Another is 2048-term.py

screenshot

2048-term.py is desgined for Termux Users. Can control with W = UP, A = LEFT, S = DOWN, D = RIGHT, E = EXIT THE SCRIPT.

For any help, feedback, updates and chat:

Note:

If you didn't installed Python3, PIP, Git & Modules in your Windows than just download & run the 2048.exe file from releases and play. GitHub release (latest by date)

Imports:

From 2048-term.py:

import os
from random import randint
from copy import deepcopy

From 2048.py:

import random
from tkinter import Frame, Label, CENTER
import logic
import constants as c

From logic.py:

import random
import constants as c

Setup:

  • Linux:

    • sudo apt install python3 git -y
    • git clone https://github.com/AbirHasan2005/2048 && cd 2048
  • Termux:

    • apt install python git -y
    • git clone https://github.com/AbirHasan2005/2048 && cd 2048
  • Windows***(With Python3, PIP3, Git and Modules)***:

    • Install & setup Python3 on Windows
    • Install & setup Git on Windows
    • git clone https://github.com/AbirHasan2005/2048 && cd 2048
  • Windows***(Without Python3, PIP3, Git and Modules)*** [Recommanded]:

Command(Linux/Termux/Mac):

python3 2048.py # For Window Mode (For Linux & Mac)
python3 2048-term.py # For Terminal (For Termux, Linux & Mac)

Command(Windows):

python3 2048.py

If Python3 installed & runs with python3 command

Command(Windows):

python 2048.py

If Python3 installed & runs with python command

Load Codes:

Don't become a coder by editing my codes. Must give me credits if you use any codes from here.

If you find any mistakes in the coding than please report in my Telegram Group.


FOLLOW ME ON:

DONATE:

paypal

2048's People

Contributors

abirhasan2005 avatar

Stargazers

 avatar  avatar  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.