Crash and Compile

Next Friday we will be organizing the online Crash & Compile. In the #announcements channel you can find the challenges that your team can prepare for. Register your team in the #registration discord channel and start preparing so that you can win those beloved anytimers on the candidate board members.

The deadline for registration is next Thursday. If you'd like to join the competition but haven't found a team yet, make sure to let this be known on Discord.

To help you prepare we have gathered a couple of resources to boost your programming skills.

Learning resources

  • https://exercism.io/ Exercism is an online website that helps you learn new programming languages by completing coding challenges and getting feedback from mentors.
  • https://www.hackerrank.com/ Hackerrank is an online platform that helps you prepare for coding interviews by completing exercises in a range of topics related to computer science.
  • https://projecteuler.net/ Project Euler is a well known website among Crash & Compile veterans as it has many similar exercises which are a great way to improve your problem solving skills.

Got stuck on an exercise or don't know how to setup a local programming environment? Then consider asking for help in our #coding-crash-course Discord channel.

Practice exercises for the Crash & Compile

To help you practice for the Crash & Compile we have prepared some practice exercises in the context of our favorite game: Klaverjas.

Played klaverjas hands

Given a list of hands (download them here) try to answer the following questions.

  • How many times did a team go wet?
  • What is the average amount of honor earned in 1 hand?
  • How many times did a team earn a "Pit"?
  • How many times did a player won a trick using a 7?

Each hand in the text file contains the following information:

  • The first line contains the dealer, so that the player after the dealer may come out first.
  • The second line contains the bid and the team playing said bid for instance: "Wij: 102H" means player 0 or player 2 bid 102 Hearts "Zij: 100Sans" means player 1 or player 3 bid 100 Sans
  • The lines below the bid contain the tricks played during said hand. Here the first column contains cards played by player 0, the second column contains cards played by player 1, the third column contains cards played by player 2 and the fourth (last) column contains cards played by player 3.

You may assume that a player did not verzaak and everyone follows the Francken klaverjas rules.

Other interesting Klaverjas questions

Determine the odds of receiving a sorted hand

If a team plays sans and a player plays random cards from their hand, what is the change that they won't verzaak?

Comments

About this event

From
May 8th 20:00
Until
May 8th 23:00
Location