Sudoku solver

I wrote a sudoku solver in Python as a little toy project, but wanted to make it feel a bit more real so I rewrote it in Javascript so that all the world can solve their sudokus.

If there is a solution, the program will find it. But beware: the method used is not very sophisticated, so if there not a solution, your browser might get upset while it searches through all the incorrect solutions.

See code on Github here.

Update: I also made an Android App of this – it was quite a challenge as I’m only very vaguely familiar with Java and had only once before played around with Android once a few years ago. There’s certainly room for improvement here, but I’m pleased to have made something that I can actually interact with on my phone. The code for this is also on the Github repo.

sudoku_android1 sudoku_android2

149 Words

Interactive Voronoi Partitions using D3

D3 is a powerful Javascript library for in-browser interactive data visualisations. During my masters in Computational Biology, Voronoi Paritions were one of the tools I used to analyse the patterns formed by retinal cells throughout development.

Here is a little demo of Voronoi Partitions I made to learn a bit of d3. Code available on github.

Click and drag a point to move it. Double click a point to delete it.
Double click anywhere else to add a new point.

80 Words

Neural art

Around the Christmas break I was playing with Leon Gatys et al’s Neural Algorithm of Artistic Style¬†using the open source implementation by Justin Johnson. Here are a few images that I thought were cool!


 

Emmanuel College in the style of The Starry Night

emmanuelstarry

 

 

 

 

 

 

emmanuel-starry-big2


Clare College Bridge and Monet’s Waterlilies

clare_bridgemonet_lilly

 

 

 

 

 

 

 

clare_bridge_monet_lilly


 

Jeremy Corbyn in the style of an impressionist rooster

chicken

 

 

 

 

 

 

 

corbyn_chicken

 


 

The Queen in the style of some “LSD art”

queenLizzylsd

 

 

 

 

 

 

 

 

 

queen_lsd

 

 


The incredible Akhil, also drawn in the style of some “LSD art”

 

akhil_twinlsd

 

 

 

 

 

 

akhil_twin_lsd_big

 


This is a video of the above image being generated. When running the programme the makes the blended images, a loop is run for a large number of iterations (~2000 times). The frames of this video show the image above after each multiple of 5 iterations.