Showing posts from September, 2016

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

Hangman using C++

Here's a video of  Hangman game that I've created using visual studio 2015 in C++ : I've  changed the source code a little from what you've seen in the video. Now this game even has a score board feature! have a look at it! other changes in the update include : At each word you get 6 lives instead of overall 9 lives which you've seen in the video. When you reset the game by pressing R (upper-case), instead of setting lives to zero and going to menu, the game would automatically restart (no going to menu as seen in video) Your score would be 10 multiplied by the number of word you uncovered successfully! here's the updated source code : // Hangman.cpp : to create a hangman game #include "stdafx.h" #include "string.h" #include "stdlib.h" #include "conio.h" #include "time.h" //----------------------------------------------------------------