RULES - EUROPYTHON BATTLE

1. GROT Rules

In GROT you should do everything to get the highest final score. On a board you have fields with different colors, on those fields you have arrows directed in one of the four directions (East, West, North, South).
After clicking on the field, the chain reaction has been started, each field disappears, according to the arrow’s directions.
Your turn ends when the last field with arrow has been directed outside the board. After each round, number of available moves is reduced by one.

After the end of the turn the value of disappeared fields is totaled.

Points:

  • Grey - 1 point
  • Blue - 2 points
  • Green - 3 points
  • Red - 4 points

Extra points

Cleaning the whole column or row - 10 points for each field in this column or row (e.g. on 4x4 board - 40 points for an empty column/row, on 8x8 board it will be 80 extra points).

Extra points formula:

extra_points = (empty_rows + empty_columns) * board_size * 10

Extra moves

If the length of the move (number of disappeared fields) is bigger than a certain value (look at the formula below), player will get extra moves. The more points player received during the game, the bigger this certain value is.

Extra moves formula:

threshold = math.floor(total_score / (5*board_size*board_size)) + board_size - 1
if chain_length >= threshold than
    moves += chain_length - threshold
                
E.g. on a 4x4 board and points 0-80:
  • move length 4 -> 1 extra move
  • move length 5 -> 2 extra moves
  • move length 6 -> 3 extra moves
    etc.
On a 4x4 board and points 80-160:
  • move length 5 -> 1 extra move
  • move length 6 -> 2 extra moves
  • move length 7 -> 3 extra moves
    etc.

Filling the board after the move

Fields above the cleaned move will be lowered down. Empty fields will be filled with new fields. Each new field will get a random arrow direction and random color. The probability for drawing color is:

  • Grey - probability 4/10
  • Blue - probability 3/10
  • Green - probability 2/10
  • Red - probability 1/10

End of the game

Game ends when player’s moves are 0 (zero). Sum of all points is the final score.

2. CONTEST RULES

Contest rules

Your task is to write an algorithm, which will pick the starting fields to have the highest final score.

Algorithm should consider few things:

  • High move scoring (also extra moves for empty columns and rows)
  • Move length, number of cleaned fields (so player will get more moves to play longer)
  • The solution in one move affects on the board in the next move, so there is a possibility to prepare better position in the net move.

All players will be play on the same board and will get the same fields, which will be filling empty fields.

Game: http://grot.hackathons.stxnext.pl
Code: https://github.com/stxnext/grot

The winner

The winner will be player whose algorithm will get the highest final score.


"Regulations of the Competition"

REGULATIONS OF THE COMPETITION

“EUROPYTHON BATTLE”

 

§1

General provisions

  1. “Europython Battle” contest (next “Contest”) is organized by STX Next Sp. z o.o., based in Poznan, Franciszka Morawskiego 12/5 street, entered into the Register of Entrepreneurs maintained by the Poznan District Court - New City and Wilda in Poznan, VII Economic department register and pledges with KRS 0000230895, NIP 7781424849, REGON 300013306 (next: “Organizer”).

  2. The contest is announced and organized through www.EuropythonBattle.com website (nex:t “Contest website”).

  3. Regulations of the competition (next: “Regulations of the competition”) is binding on Organizer and contest members, it regulates the conditions and rules of participation in the competition, rights and responsibilities Organizer and Contest Members. Conditions of participations in the contest are determined only by Regulations of the competition. All promotional and advertising materials are informational purpose only.

  4. Because of the fact, that computer software enable the functioning Contest website and conducting the competition has been delivered by Organizer, he is the only responsible for computer software errors. Organizer declares that under related mechanisms are used cookies.

 

§2

Subject and time of the Contest

  1. The Contests consists of doing the task presented by Organized on Contest website, which is writing an algorithm, which will have the highest final score in the contest game (next: “Algorithm”).

  2. The contest starts on 21st of July 2014, at 10:00:00 and ends on 25th of July 2014 at 16:00:00 (5 days), but announcing the results and giving Awards will be after this date. Announcing the results is according the rules in §4 point 3. and §6 point 1. of the Regulations of the competition.

 

§3

Participation in the Contest

  1. Participation in the Contests is voluntary and free.

  2. The Contest member can be a person, who at the latest in the day of the Contest will be 18 years old, have full legal capacity, and who successfully joined to the Contest according to the rules in point 5. this paragraph (next: “Contest Member”).

  3. Contest is only for individuals.

  4. Participation in the Contests is not allowed to Organizer employees, management, subjects and their employees, coworking with Organizer in Contest organization and the closest family of listed people, which is spouses, relatives in a straight line (e.g. parents, children, grandparents, grandsons), their adoptions, adoptive and siblings.

  5. The Contest Member referred to point 2. is participating to the Contest through the doing all activities:

    1. Send join form on the www.EuropythonBattle.com website,

    2. Acceptance the Regulations of the Competition,

    3. Statement that is 18 years old and have a full legal capacity,

    4. Statement that is the only author of the Algorithm,

    5. Creating and sending the Algorithm to europython@stxnext.pl.

  6. Person joining to the Contest according to the rules in point 5. above, can also agree in the Join form for getting electronically on given e-mail address, commercial information of Organizer products or services.

  7. Successfully done activities described in point 5. above results with sending join application to the Contest (next: “Application”). Successfully Application will be confirmed by displaying the message on the Contest website.

  8. Every Contest Member can send Application only once.

  9. To explain doubts connected with Contest Member participation in the Contest, Organizer can contact with Contest Member using data given in the Join Form (e.g. by e-mail correspondence) and demand detailed information connected to Contest Member participation in the Contest, included statement in the specified form and content and to show accurate documents.

 

§4

The course of the Contest

  1. Competition in the contest starts at 10:00:00 and ends the same day at 16:00:00, reserving that in the last Contest day, the competition ends at 15:00:00 (next: “Contest day”).

  2. From the sent Algorithms in the each Contest Day, will be chosen one which will defeat other Algorithms. Contest Member who is the author of the winning algorithm, become the Daily Winner (next: “Daily winner”) and obtains the right to Award.

  3. Announcement of the competition results in the Contest Day will be through publishing First names and Last names on the Contest website. Daily winners will be informed about the win with e-mail message (on e-mail addressed given in the Join form).

  4. Daily winner is obliged within 7 working days since getting e-mail message from Organizer (according to point 3. above), reply on this message with necessary data to deliver Award, for which data Daily winner will be asked in received e-mail, in particular address on which Award should be delivered. Failure to comply with this deadline, wrong address or data, which are referred in the previous sentence and any other lapses, cause inability with delivering Award, result losing right to this Award, and the Award stays for the only Organizer disposition. Daily winners have right to get Award during the Europython conference on the STX Next Sp. z o.o. booth, on 21st - 25th of July 2014 at BBC Berlin Congress Center, Alexanderstr. 11, 11178 Berlin.

  5. In the last Contest day, which is 25th of July 2014 (next: “Great Finale”) the Great Finale will take place. During the competition three the best Algorithms from the five days (21.07.2014. - 25.07.2014.) will be selected. Their authors become Contest Winners (next: “Winners”) and obtain the right to Award.

  6. Announcement of Great Finale results will be through publishing First names and Last names on the Contest website. Winners will be informed about the win by e-mail message (on e-mail addressed given in the Join form).

  7. After the Great Finale, Winners will be also annoucement in the Great Finale place.

 

§5

Awards

  1. Organizer is a founder of Contest Awards.

  2. Every Daily Winner will get a surprise Award (next: “Award”).

  3. Every Winner will get a surprise Award (next: “Winner Award”).

  4. Daily Winners and Winners don’t have right to change the Award and Winner Award on another thing, benefit or the cash equivalent. They can not transfer the right to receiving Award to the third party.

  5. Organizer delivers Awards at the own expense and responsibility after ending every Contest Day.

 

§6

Announcing the results and the Contest Committee

  1. Announcing the Daily Winners occurs within three hours since the end of Contest each Contest Day, the Winners will be announced right after the end of the Great Finale.

  2. The Contest Committee includes three members appointed by Organizer.

  3. The Contest Committee work is to watch the course of the Contest and to check if Algorithm fulfills the requirements described in §7 point 4.

 

§7

Detailed rules and legal conditions of the Contest

  1. Contest Members can submit only Algorithms created by them.

  2. Contest Member is the only responsible for infringement author’s economic rights and/or author’s moral rights third party according to submitted Algorithm to Organizer. Contest Member is obliged to turn back all costs, which Organizer incurred according to infringement rights or personal goods third party caused by defective - according to the infringement described in point 1. above - Algorithm.

  3. GROT Rules

    In GROT you should do everything to get the highest final score. On a board you have fields with different colors, on those fields you have arrows directed in one of the four directions (East, West, North, South).
    After clicking on the field, the chain reaction has been started, each field disappears, according to the arrow’s directions.
    Your turn ends when the last field with arrow has been directed outside the board. After each round, number of available moves is reduced by one.

    After the end of the turn the value of disappeared fields is totaled.

    Points:

    • Grey - 1 point
    • Blue - 2 points
    • Green - 3 points
    • Red - 4 points

    Extra points

    Cleaning the whole column or row - 10 points for each field in this column or row (e.g. on 4x4 board - 40 points for an empty column/row, on 8x8 board it will be 80 extra points).

    Extra points formula:

    extra_points = (empty_rows + empty_columns) * board_size * 10

    Extra moves

    If the length of the move (number of disappeared fields) is bigger than a certain value (look at the formula below), player will get extra moves. The more points player received during the game, the bigger this certain value is.

    Extra moves formula:

    threshold = math.floor(total_score / (5*board_size*board_size)) + board_size - 1
    if chain_length >= threshold than
        moves += chain_length - threshold
                    
    E.g. on a 4x4 board and points 0-80:
    • move length 4 -> 1 extra move
    • move length 5 -> 2 extra moves
    • move length 6 -> 3 extra moves
      etc.
    On a 4x4 board and points 80-160:
    • move length 5 -> 1 extra move
    • move length 6 -> 2 extra moves
    • move length 7 -> 3 extra moves
      etc.

    Filling the board after the move

    Fields above the cleaned move will be lowered down. Empty fields will be filled with new fields. Each new field will get a random arrow direction and random color. The probability for drawing color is:

    • Grey - probability 4/10
    • Blue - probability 3/10
    • Green - probability 2/10
    • Red - probability 1/10

    End of the game

    Game ends when player’s moves are 0 (zero). Sum of all points is the final score.

 

      4. Contest rules

Contest Member’s task is to write an algorithm, which will pick the starting fields to have the highest final score.

 

Algorithm should consider few things:

- High move scoring (also extra moves for empty columns and rows),

- Move length, number of cleaned fields (so player will get more moves to play longer),

- The solution in one move affects on the board in the next move, so there is a possibility to prepare better position in the net move.

 

All players will be play on the same board and will get the same fields, which will be filling empty fields.

 

Game: http://grot.hackathons.stxnext.pl

Code: https://github.com/stxnext/grot

 

      5. The winner

The winner will be player whose algorithm will get the highest final score.

 

 

§8

Privacy Policy

  1. Contest Member is giving personal data voluntarily, but those data are necessary to join the Contest, those data will be processed in accordance with the provisions of the Law on Protection of Personal Data dated 29th of August 1997 (Dz. U. 2002, No 101, position 926 with later changes, next: “law on protection of personal data”) in purpose connected with organization and conduction Contest (delivering Awards included) and also - if Contest Member agreed - in commercial information of Organizer products or services.

  2. Contest Members personal data administrator is STX Next Sp. z o.o. based in Poznan, Franciszka Morawskiego 12/5 street, entered into the Register of Entrepreneurs maintained by the Poznan District Court - New City and Wilda in Poznan, VII Economic department register and pledges with KRS 1.    0000230895, NIP 7781424849, REGON 300013306.

  3. Contest Members have rights to access their personal data and to update them on terms defined in the law on protection of personal data.

 

§9

Complaints

  1. Complaints about the Contest can be submitted from Contest Members to the 15th of August 2014, only in writing, send registered post on address STX Next Sp. z o.o., Franciszka Morawskiego 12/5 street, 60-239 Poznan with an “Europython Battle” note. The deadline, described in the previous sentence, is determined by date of complaint’s delivery to the Organizer.

  2. Complaints delivered after the deadline described in point 1. above, will not be considered.

  3. Complaints should include appellant’s data (first name, last name, e-mail address, address for correspondence), short causes of complaint and specification of expected solution.

  4. Successfully delivered complaints will be consider within 21 days since the date of the complaint delivery, appellant will be informed about the way of considering complaint on e-mail address or registered post on address for correspondence given by him. Complaints consider Contest Committee for Organizer.

  5. Contest Committee decisions about the complaint are taken by a majority of votes in the form of a written resolution.

 

§10

Changes in the Regulations of the competition

  1. Regulations of the competition can be change by Organizer without giving reasons. Changes will be date published in unified Regulations of the competition text on the Contest Website and information about changes and their content will be sending to the Contest Member on an e-mail address given in the Join form. After getting this information, Contest Member should read changed Regulations of the competition and in case of lack of consent for those changes, the Contest Member should reply on the e-mail with a statement of lack of consent for the changes. Lack of consent means Contest Member resignation of participation in the Contest.

  2. Changes in the Regulation of the competition can not occur for the disadvantage previous Contest Members.

 

§11

Final provisions

  1. Organizer assumes no responsibility for:

    1. Algorithm content,

    2. In case of inability to contact with the Contest Member caused by not real or wrong data given by the Contest Member,

    3. In case of inability in delivering Award caused by wrong or not real address for correspondence or any other demanded data given by the Contest Member.

  2. Regulations of the competition are available for inspection in the Organizer office (on the address indicated in §9, point 1.), they are also published on the Contest website.

  3. Contest Member can resign from Contest participation by sending e-mail on europython@stxnext.pl with information includes resignation, it has to be send from e-mail address given in the Join form.

  4. Contest Members can get information about Contest by contact with the Organizer on e-mail address: europython@stxnext.pl. Organizer will reply within 3 working days. Organizer does not give information, if it would be infringement of Regulations of the competition rules.