Skip to content

Instantly share code, notes, and snippets.

@asubramanian08
Last active July 26, 2022 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asubramanian08/f631933a01f8e20d73c63ecb3326dd04 to your computer and use it in GitHub Desktop.
Save asubramanian08/f631933a01f8e20d73c63ecb3326dd04 to your computer and use it in GitHub Desktop.
Play a visual 2048 game using front end languages (incomplete)
NOTE: This file is used to name the gist.
console.log('Hello world');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello world</h1>
<script src="scripts.js"> </script>
<script src="hello.js"> </script>
</body>
</html>
var grid = [];
grid[0] = [null, null, null, null];
grid[1] = [null, null, null, null];
grid[2] = [null, null, null, null];
grid[3] = [null, null, null, null];
console.log(grid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment