From b4586091f4e744fa72c7ec100ba89dd2a89a9790 Mon Sep 17 00:00:00 2001 From: h45-taylor <harvey.taylor3@live.uwe.ac.uk> Date: Fri, 8 Dec 2023 11:55:47 +0000 Subject: [PATCH] Created code files and added rules in README --- 2048.cpp | 0 README.md | 11 ++++++++++- game.hpp | 0 main.cpp | 0 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 2048.cpp create mode 100644 game.hpp create mode 100644 main.cpp diff --git a/2048.cpp b/2048.cpp new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 084c852..fb8068a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # 2048 Game -### In this Code I am going to be recreating [this game](https://play2048.co/) \ No newline at end of file +## In this Code I am going to be recreating [this game](https://play2048.co/) in a linux command line. + +# The Rules + +* If 2 of the same numbers touch they will combine and add up to the value of both added together (e.g. if a 2 block touches another 2 block they will combine and become one 4 block) + +* You can use the 2 common layouts of cursor keys (arrow keys or wasd) + +## The Aim +The aim of the game is to get one of the blocks upto a score of 2048 \ No newline at end of file diff --git a/game.hpp b/game.hpp new file mode 100644 index 0000000..e69de29 diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..e69de29 -- GitLab