1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-08 07:22:38 +00:00

Finished pool advance logic still need tests

This commit is contained in:
2015-10-14 17:58:28 -04:00
parent 087c383996
commit 386dc1605f
11 changed files with 120 additions and 70 deletions

View File

@@ -66,7 +66,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -78,7 +78,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -90,7 +90,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -115,7 +115,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -140,7 +140,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -152,7 +152,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -177,7 +177,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>

View File

@@ -66,7 +66,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -78,7 +78,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -104,7 +104,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -131,7 +131,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -143,7 +143,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -168,7 +168,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>

View File

@@ -21,7 +21,7 @@
<% @round = 1 %>
<% until @matches.select{|m| m.round == @round}.blank? %>
<% if @round <= @pools %>
<td><%= w.boutByRound(@round) %><br>Result</td>
<td><%= w.boutByRound(@round) %><br><%= w.resultByBout(w.boutByRound(@round)) %></td>
<% end %>
<% @round = @round + 1 %>
<% end %>

View File

@@ -66,7 +66,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -90,7 +90,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>

View File

@@ -66,7 +66,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -78,7 +78,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -104,7 +104,7 @@ li.game{
<li class="spacer">&nbsp;</li>
<li class="game game-top "><%= match.w1_name %> <span>Score</span></li>
<li class="game game-spacer"><%= match.bout_number %> &nbsp;</li>
<li class="game game-spacer"><%= match.bout_number %> <%= match.bracketScore %>&nbsp;</li>
<li class="game game-bottom "><%= match.w2_name %><span>Score</span></li>
<li class="spacer">&nbsp;</li>
@@ -120,4 +120,4 @@ li.game{
<li class="spacer">&nbsp;</li>
</ul>
</main>
</main>