Prewired Online

Introduction

We set up Prewired Online to explore ways of running Prewired during a period when it is not possible to hold events in CodeBase. Information on the sessions that we ran us listed below. However, since attendance levels have been low, we have decided to suspend the online sessions for the time being.

If you would be interested in getting updates on the possibility of Prewired Online restarting, please get in touch with us by email at [email protected].

Date: 13 May 2020

Workshop

Date: 8 April 2020

Challenge: Eight Queens

Pretend that the grid below is a chess board. Your job is to place eight queens on the board in such a way that no queen can capture any other queen. For those who don't play chess, what you need to do is fill in eight of the sixty-four squares below so that no two squares are in line with each other vertically, horizontally, or diagonally. Once you have found a solution, try to write some code that can tell you how many different possible solutions there are. As a double bonus, how many of those solutions are unique; that is, not a rotated or flipped version of another solution.

Workshop

Date: 1 April 2020

Challenge: Shared Birthday

I have a group of 30 friends round for a party. What is the probability at least two of them share a birthday? Write the code so that you can also given an answer for N friends, where N is between 2 and 50.
Sample solution (Jupyter Notebook)

Workshop