Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 925 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 925 Bytes

Game 2048

Game 2048 for unix terminals.

Installation

for simple unix

  • git clone https://github.com/pbalykov/game-2048.git (the file is being installed)
  • cd game-2048 (go to the folder)
  • make or make run (the first method collects, the second collects and launches)
  • ./Game-2048 (starting the game)

if you have nixos

Controls

  • W, w and (up arrow) -> UP
  • S, s and (down arrow) -> DOWN
  • A, a and (left arrow) -> LEFT
  • D, d and (right arrow) -> RIGHT
  • q -> exit

About the code

The code is written in C. The headers folder contains header files, controls are executed using break and select. Also, the field is made dynamically, although you can do it for every taste.