{% extends "main.html" %} {% load i18n %} {% load staticfiles %} {% block rules_selected %}selected{% endblock %} {% block title %}{% trans "Rules to become the Gamesmaster" %}{% endblock %} {% block content %}

What are the rules?

We have a “big” tic-tac-toe board with a “small” tic-tac-toe board in each cell. Your goal is to win the big board by winning small ones. You may only play in the big field that corresponds to the last small field your opponent played. When you are sent to a field that is already won/lost/drawn, you can place the move wherever you like. For example, here is a game where O wins, because X makes an error:

What should I deliver?

You write a Lua function that takes 4 arguments (xo, board, row, col) and returns the coordinates of where to place your move. You can find an example solution in the tictactoe library repository. This example is what you are competing against; if you win, you get a cap!

What if I cheat?

Since all the activities are logged, and the contest is quite small, we’ll most likely discover your cheating. This will, without exception, spell misery for you, your family, your friends, and your pets, from the moment of your discovery until the moment of your demise. In short: don’t cheat. You don’t want to cheat.

If you manage to get out of the sandbox, bring down the system, read others’ code or influence the result unfairly, well done, You are a promising hacker. If you do not report in timely manner, you are not qualified for any prizes.

Be friendly to others, and good luck coding! :-)

Time and memory restrictions

As of writing, contestants' code is restricted to 128MB and 10 seconds for a single game (subject to change). We assume you will never practically hit this constraint, but the restriction is necessary to keep the server running. If you hit this restriction, your program is likely buggy. Since time and memory restriction is shared for both players, we understand it is theoretically possible to do memory/timing attacks and unfairly win. These kinds of wins do not count; it is easier to create a real solution to win the Spil cap; but the Gamesmaster code will be checked manually before the closing ceremony. Also, obvious timing and memory attacks do not count as an "extra cap" in the hostile environment.

Small print

We have stocked: {% endblock content %} {% block end_head %} {{ block.super }} {% endblock %} {% block end_body %} {{ block.super }} {% endblock %}