aneesh-shetye / py2048

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2048 Game

Requirements:

1.python3

Required libraries:

  1. pynput
  2. optparse( inbuilt with python3)
  3. random(inbuilt with python3)
  4. os (inbuilt with python3)

starting the game

to play type python3 New_2048.py in the terminal

to set the number of rows and columns and the number at which you win type addition arguments -n and -w after it

to get help about the arguments type python3 New_2048.py --help or python3 New_2048.py -h

img after typing the command

manuevering through the game

use "w" "a" "s" "d" keys to manuever up, left, down and right respectively

exiting the game

to exit the game press ctrl+c or esc key

About


Languages

Language:Python 100.0%