Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<title>The Game of Life</title>
<link rel="stylesheet" type="text/css" href="./src/index.css">

</head>
<body>
<h1>Conways Game of Life</h1>
<p id='counter'>Generation: 0</p>
<table id='canvas' style='background: black'>
</table>
<script src="./src/index.js"></script>
<script src="./src/shapes.js"></script>
<script src='./src/buttons.js'></script>

<div class='main-controls'>
<button id='play' onclick="togglePlay()">Play</button>
<button id='next' onclick="next()">Next</button>
<button onclick="clearBoard()">Clear</button>
<button id='random' onclick="randomize()">Randomize</button>
</div>

<div class='secondary-controls'>
<p id='speedTracker'>speed: 150ms</p>
<p>**to slow down or speed up pause the simulation then adjust speed**</p>
<div class='control-box'>
<button onclick="lowerSpeed()">Slow Down <<</button>
<button onclick="increaseSpeed()">Speed Up >></button>
</div>
<div class='control-box'>
<h2>Shapes</h2>
<button class='other-button' onclick="centerStart()">Center Objects</button>
<button onclick="beacon()">Beacon</button>
<button onclick="blinker()">Blinker</button>
<button onclick="hammerHead()">Hammer Head</button>
</div>
<div class='control-box'>
<p id='xwidth'>Width: 50</p>
<button onclick="increment('x', 10)">Increase Width ^</button>
<button onclick="increment('x', -10)">Decrease Width v</button>
</div>
<div class='control-box'>
<p id='yheight'>Height: 50</p>
<button onclick="increment('y', 10)">Increase Height ^</button>
<button onclick="increment('y', -10)">Decrease Height v</button>
</div>




<h2>Rules:</h2>
<p>If the cell is alive and has 2 or 3 neighbors, then it remains
alive. Else it dies.</p>
<p>If the cell is dead and has exactly 3 neighbors, then it comes to
life. Else if remains dead.</p>
</div>
</body>
</html>
39 changes: 0 additions & 39 deletions objectives/double-buffer/README.md

This file was deleted.

Binary file removed objectives/double-buffer/img/life.png
Binary file not shown.
29 changes: 0 additions & 29 deletions objectives/explain-describe-ca/README.md

This file was deleted.

Binary file removed objectives/explain-describe-ca/img/life.png
Binary file not shown.
50 changes: 0 additions & 50 deletions objectives/rules-game-life/README.md

This file was deleted.

Binary file removed objectives/rules-game-life/img/life.png
Binary file not shown.
21 changes: 0 additions & 21 deletions objectives/turing-complete/README.md

This file was deleted.

Binary file removed objectives/turing-complete/img/life.png
Binary file not shown.
5 changes: 0 additions & 5 deletions resources/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions resources/ios/README.md

This file was deleted.

Binary file removed resources/ios/game-of-life-iOS-mock-1.png
Binary file not shown.
Binary file removed resources/ios/game-of-life-iOS-mock-2.png
Binary file not shown.
19 changes: 0 additions & 19 deletions resources/python/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions resources/web/README.md

This file was deleted.

Loading