2048 using C++
I still remember the first time I solved the 2048 along with my friend Prayank during a lunch break when I was in 12th grade... I went onto achieve some remarkable feats in the android app such as this: Just the last day I started to think about the algorithm of 2048 and as a result of that train of thoughts this program resulted. I've made the game and also achieved 2048 in it (Yeah, yeah I could generate the tile but I'm saying the truth I played to get it) here's the video of the game, hope you enjoy it: here's the source code for the game : // 2048 game using C++ #include "stdafx.h" #include "stdlib.h" #include "conio.h" #include "time.h" void clear(void) { system("cls"); //clear the screen } int box_values[4][4] = { 0 }; //stores all the values at various positions ...