<commit_before><!DOCTYPE html>

<link rel="import" href="board.html">

<polymer-element name="risk-game">
  <template>
    <style>
    </style>

    <section class="container-fluid">
      <!-- TODO: better header -->
      <h1>Risk</h1>
      <div class="row">
        <!-- Risk Board -->
        <risk-board id='board' game="{{ game }}" playerId="{{ playerId }}" mode="{{ mode }}" class="col-md-8"
          on-attack="{{ attack }}"
          on-move="{{ move }}"
          on-selection="{{ selection }}"></risk-board>
        <div class="col-md-4">
          <template if='{{ mode == "select" }}'>
            <div style='text-align: center; padding: 1em;'>
              It's up to you ! Select one of your country to add an army.
            </div>
          </template>
          <template if='{{ myLastBattleForMove != null }}'>
            <div style='text-align: center; padding: 1em;'>
              <p>How many armies do you want to move from <strong>{{ myLastBattleForMove.attacker.country }}</strong> to <strong>{{ myLastBattleForMove.defender.country }}</strong>?</p>
              <input type="range" value="{{ armiesToMove | asInteger }}" min="1" max="{{ myLastBattleForMove.attacker.remainingArmies - 1 }}" />
              <button on-click='{{ moveOnConquer }}'>Move {{ armiesToMove }} armies</button>
            </div><commit_msg>add a message by mode<commit_after><!DOCTYPE html>

<link rel="import" href="board.html">

<polymer-element name="risk-game">
  <template>
    <style>
    </style>

    <section class="container-fluid">
      <!-- TODO: better header -->
      <h1>Risk</h1>
      <div class="row">
        <!-- Risk Board -->
        <risk-board id='board' game="{{ game }}" playerId="{{ playerId }}" mode="{{ mode }}" class="col-md-8"
          on-attack="{{ attack }}"
          on-move="{{ move }}"
          on-selection="{{ selection }}"></risk-board>
        <div class="col-md-4">
          <template if='{{ mode == "select" }}'>
            <div style='text-align: center; padding: 1em;'>
              It's up to you ! Select one of your country to add an army.
            </div>
          </template>
          <template if='{{ mode == "attack" }}'>
            <div style='text-align: center; padding: 1em;'>
              It's up to you ! Select the attack to engage.
            </div>
          </template>
          <template if='{{ mode == "move" }}'>
            <div style='text-align: center; padding: 1em;'>
              It's up to you ! Select the forfication to make.
            </div>
          </template>
          <template if='{{ myLastBattleForMove != null }}'>
            <div style='text-align: center; padding: 1em;'>
              <p>How many armies do you want to move from <strong>{{ myLastBattleForMove.attacker.country }}</strong> to <strong>{{ myLastBattleForMove.defender.country }}</strong>?</p>
              <input type="range" value="{{ armiesToMove | asInteger }}" min="1" max="{{ myLastBattleForMove.attacker.remainingArmies - 1 }}" />
              <button on-click='{{ moveOnConquer }}'>Move {{ armiesToMove }} armies</button>
            </div>
{'fraction_non_alphanumeric': 0.18344519015659955, 'fraction_numerical': 0.005752636625119847, 'mean_word_length': 2.2843651626442814, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6762753', 'n_tokens_mistral': 957, 'n_tokens_neox': 911, 'n_words': 249}