Commit 26f59e22 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Added starter code for the homework on trees.

parent 0f90e119
......@@ -3,144 +3,152 @@
exports[`the ScoreSheet component correctly positions and numbers moves in a tree beginning from a nonzero ply 1`] = `
<div>
<div
class="score"
id="portrait"
>
<span
class="turn"
>
<span
class="turn-number"
>
2
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
first
</button>
</span>
<div
class="variation"
id="app"
>
<span
class="turn"
<div
class="score"
>
<span
class="turn-number"
class="turn"
>
3
<span
class="turn-number"
>
2
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
first
</button>
</span>
<button
class="move active"
<div
class="variation"
>
fourth
</button>
</span>
</div>
<span
class="turn"
>
<span
class="turn-number"
>
3
</span>
<button
class="move"
>
third
</button>
</span>
<div
class="variation"
>
<span
class="turn"
>
<span
class="turn"
>
<span
class="turn-number"
>
3
</span>
<button
class="move active"
>
fourth
</button>
</span>
</div>
<span
class="turn-number"
class="turn"
>
3
<span
class="turn-number"
>
3
</span>
<button
class="move"
>
third
</button>
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
<div
class="variation"
>
sixth
</button>
</span>
</div>
<span
class="turn"
>
<span
class="turn-number"
>
3
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
fifth
</button>
<button
class="move"
>
seventh
</button>
</span>
<div
class="variation"
>
<span
class="turn"
>
<span
class="turn"
>
<span
class="turn-number"
>
3
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
sixth
</button>
</span>
</div>
<span
class="turn-number"
class="turn"
>
2
<span
class="turn-number"
>
3
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
fifth
</button>
<button
class="move"
>
seventh
</button>
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
<div
class="variation"
>
second
</button>
</span>
<span
class="turn"
>
<span
class="turn-number"
>
2
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
second
</button>
</span>
</div>
</div>
</div>
</div>
</div>
......@@ -149,41 +157,49 @@ exports[`the ScoreSheet component correctly positions and numbers moves in a tre
exports[`the ScoreSheet component disables all of its buttons when it itself is disabled 1`] = `
<div>
<div
class="score"
id="portrait"
>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
first
</button>
</span>
<div
class="variation"
id="app"
>
<span
class="turn"
<div
class="score"
>
<span
class="turn-number"
class="turn"
>
1
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
first
</button>
</span>
<button
class="move active"
disabled=""
<div
class="variation"
>
second
</button>
</span>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move active"
disabled=""
>
second
</button>
</span>
</div>
</div>
</div>
</div>
</div>
......@@ -192,153 +208,161 @@ exports[`the ScoreSheet component disables all of its buttons when it itself is
exports[`the ScoreSheet component organizes branchings into indented variations with ellipses to align moves 1`] = `
<div>
<div
class="score"
id="portrait"
>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
>
first
</button>
</span>
<div
class="variation"
id="app"
>
<span
class="turn"
<div
class="score"
>
<span
class="turn-number"
class="turn"
>
1
<span
class="turn-number"
>
1
</span>
<button
class="move"
>
first
</button>
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move active"
<div
class="variation"
>
fourth
</button>
</span>
</div>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
third
</button>
</span>
<div
class="variation"
>
<span
class="turn"
>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move active"
>
fourth
</button>
</span>
</div>
<span
class="turn-number"
class="turn"
>
1
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
third
</button>
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
<div
class="variation"
>
</button>
<button
class="move"
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
sixth
</button>
</span>
</div>
<span
class="turn"
>
sixth
</button>
</span>
</div>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
fifth
</button>
</span>
<span
class="turn"
>
<span
class="turn-number"
>
2
</span>
<button
class="move"
>
seventh
</button>
</span>
<div
class="variation"
>
<span
class="turn"
>
<span
class="turn-number"
>
1
</span>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
disabled=""
>
</button>
<button
class="move"
>
fifth
</button>
</span>
<span
class="turn-number"
class="turn"
>
1
<span
class="turn-number"
>
2
</span>
<button
class="move"
>
seventh
</button>
</span>
<button
class="move"
<div
class="variation"
>
second