---
layout: default
nav_pill: tournament
---
          <script src="js/xonscore.js"></script>
          <h1>Tournament</h1>
          {% assign sitetime = site.time | date: "%FT%T" %}
          {% assign nextevent = site.data.events | where_exp: "item", "item.date >= sitetime" | last %}
          {% assign tournaments = nextevent.games | where_exp: "item", "item.tournament" %}
          {% if tournaments and tournaments.size != 0 %}
          <script>
            var event_year = {{ nextevent.date | date: "%Y" }};
            var event_month = {{ nextevent.date | date: "%M" }};
            var event_day = {{ nextevent.date | date: "%M" }};
          </script>
          <p>There will be a tournament for the next event on {{ nextevent.date | date: "%a, %b %d, %Y" }}</p>
          <ul>
            {% for game in tournaments %}
            {% assign time = game.time | split: ":"%}
            {% if game.time %}
            <li>{{ game.time }}UTC {{ game.title }}<script>d=new Date(Date.UTC(event_year, event_month, event_day, {{ time | slice: 0 }}, {{ time | slice: 1 }}));document.writeln(" ("+ Intl.DateTimeFormat(undefined, {hour: '2-digit', minute: '2-digit', timeZoneName: 'short'}).format(d) + ")")</script></li>
            {% else %}
            <li>{{ game.title }}</li>
            {% endif %}
            {% endfor %}
          </ul>
          <h2>Ranking</h2>
          <ol id="xonotic-ranking"></ol>
          <h2>Rounds</h2>
          <div id="xonotic-results"></div>
          <script>
            if(typeof d3 === 'undefined') {
              document.write('<p><a href="xonscore.txt">Results</a> (allow access to d3js.org for dynamic updates)</p>');
            }
            else {
              xonoticScoreUpdate();
              setInterval(xonoticScoreUpdate, 10000);
            }
          </script>
          <noscript><p><a href="xonscore.txt">Results</a> (Enable JavaScript for dynamic updates)</p></noscript>
          {% else %}
          <p>No tournaments have been planned for the next event.</p>
          {% endif %}
          <h2>Rules</h2>
          <p>By joining the tournament you accept following rules:</p>
          <h3>MOST IMPORTANT!</h3>
          <p>The most important rule is: HAVE FUN! Surely, the tournament is competitive, however, don't forget why we are all here - to have fun playing games together!</p>
          <h3>NO CHEATING!</h3>
          <p>If you cheat you will get banned from this and all upcoming tournaments! Cheating is: manipulating the game for your advantage. So any third-party tool that helps you is not allowed! Due to the blessing that FOSS games can be modified, modifications that give you an advantage are also considered cheating! So use the official binaries to play the tournament! If no binaries are available and you have to compile it on your own you are not allowed to modify the source. If there is any confusion <a href="index.html#communication">contact us</a> in advance and we will find a solution.</p>
          <h3>NO GRIEFING!</h3>
          <p>Griefers are going to be kicked immediately and if it happens frequently you will get banned from upcoming tournaments. We are all human beings and hopefully capable of being nice to each other! So respect each other and there will not be any problems!</p>
          <p>Leaving the tournament while it is still ongoing while you still have rounds to play is also not very nice.</p>
