This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (89 loc) · 5.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Intro Memory Game</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
<![endif]-->
</head>
<body>
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">TDD - Memory Game</a>
</div>
<div class="navbar-collapse collapse">
<form class="navbar-form navbar-right" role="form">
<a href="jasmine/SpecRunner.html" class="btn btn-success">Skip this, Go to test</a>
</form>
</div><!--/.navbar-collapse -->
</div>
</div>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">
<div class="container">
<h1>Memory Game</h1>
<p>This is a simple project example only to show my abilities as a developer. I used a <abbr title="Test Driven Development">TDD</abbr> approach, using <a href="http://jasmine.github.io/">Jasmine</a> for unit testing the code, and using some common javascript patterns to organize the code. On the <abbr title="Cascade Style Sheets">CSS</abbr> side I decided to use <a href="http://getbootstrap.com/">Boostrap</a> to speed up development</p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>Requirements</h2>
<ol>
<li>Create a deck of 30 cards with 15 pairs of matching items (cards can be whatever you'd like such a letter, number, word, etc)</li>
<li>Arrange the cards in a grid randomly with their faces hidden from the player ("face down")</li>
<li>The user will click a card to reveal ("flip") it</li>
<li>The user will click to reveal a second card. If it matches the first card, they are removed and the player scores. If it does not match, then the cards are both "flipped" back over.</li>
<li>Once all cards have been matched, allow the user to start a new game.</li>
</ol>
</div>
<div class="col-md-6">
<h2>Self imposed requirements</h2>
<ul>
<li>Don't use any MVC framework but try to respect the MVC principle (if possible)</li>
<li>Use a TDD approach (do the test fail, do the code, correct and repeat)</li>
<li>Try to use plain javascript (not dependand on jQuery or underscore)</li>
<li>Use common patterns and best practices</li>
<li>If you have the time use JSDocs style comments</li>
</ul>
<p>
<a class="btn btn-primary" href="game.html" role="button">Just take me to the game »</a>
<a class="btn btn-success" href="jasmine/SpecRunner.html" role="button">take me to the test results »</a>
</p>
</div>
</div>
<hr>
<footer>
<p>© Sebastian Pennino 2014</p>
</footer>
</div><!-- /container -->
<!--
Author notes:
This page is just plain text with css, is an introduction
-->
</body>
</html>