Skip to content

Instantly share code, notes, and snippets.

@chandruscm
chandruscm / 2048.cpp
Last active November 21, 2022 12:04
A simple implementation of the popular 2048 puzzle in C++ . Visit http://chandruscm.wordpress.com/2014/10/25/2048-in-c-c/ for code explanation.
#include<iostream>
#include<ctime>
#include<unistd.h>
#include<cstdlib>
#include<cstdio>
#include<cmath>
using namespace std;
int press_enter;