Skip to content

Commit

Permalink
Fixed button colour, added rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
cncplyr committed Apr 10, 2014
1 parent 987b7f6 commit 9072c6b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# survival-wolf
# Survival Wolf
## What

A JavaScript implementation of a King of the Hill type survival game that [appeared on Code Golf Stack Exchange](http://codegolf.stackexchange.com/questions/25347/survival-game-create-your-wolf).

The rules are changed a bit while this is still being developed, and because it's in JavaScript instead of Java.
## Why
Why not?

## Play
Check it out [here](http://cncplyr.github.io/survival-wolf/).

## Rules
See the [CodeGolf Question](http://codegolf.stackexchange.com/questions/25347/survival-game-create-your-wolf).

## Rule Differences
The rules are changed a bit from the original spec, taking into account that I'm still working on it, and because it's in JavaScript instead of Java.

### Game
* The board is a fixed size (currently 800x800)
* The game lasts 500 iterations
Expand Down
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
<li class="active"><a href="#"><span id="count-lion" class="badge pull-right">100</span>Lion</a></li>
<li class="active"><a href="#"><span id="count-bear" class="badge pull-right">100</span>Bear</a></li>
</ul>

<br>
<h3>Rules</h3>
<P>Starts with 100 of each animal.</p>
<P>Each turn animals may move once.</p>
<p>When animals meet, they fight to the death.</p>
<p>Games last 500 turns.</p>
<p>The winner is the animal with the most remaining at the end.</p>

</div>
</div>
</div>
Expand Down Expand Up @@ -390,7 +399,7 @@
if (currentTurn == 0) {
$('#run').text('Start!').removeClass('btn-danger').addClass('btn-success');
} else {
$('#run').text('Contine').removeClass('btn-success').addClass('btn-danger');
$('#run').text('Continue').removeClass('btn-danger').addClass('btn-success');
}
}
}
Expand Down

0 comments on commit 9072c6b

Please sign in to comment.