2024-01-17 07:50:43 +01:00
|
|
|
# 2048 in C
|
2024-01-17 07:49:27 +01:00
|
|
|
2048, written in C, for the terminal.
|
|
|
|
|
2024-01-17 08:55:50 +01:00
|
|
|
<img src='https://i.imgur.com/rfF1G0f.png' width='350'>
|
2024-01-17 08:48:12 +01:00
|
|
|
|
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
### Controls:
|
2024-01-17 07:49:27 +01:00
|
|
|
|
2024-01-17 07:48:45 +01:00
|
|
|
Arrow Keys to move
|
2024-01-17 07:49:27 +01:00
|
|
|
|
2024-01-17 07:48:45 +01:00
|
|
|
R to reset the game
|
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
### Running:
|
|
|
|
This program uses ncurses, and I've only tested it on my Mac's terminal. Here's the command I use to run it:
|
2024-01-17 07:48:53 +01:00
|
|
|
|
2024-01-17 19:20:24 +01:00
|
|
|
`gcc -lcurses -lm main.c -o main && ./main`
|