ragstorooks.wordpress.com
Clojure | Rags to Rooks
https://ragstorooks.wordpress.com/2011/07/27/clojure
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; My first ever Gruenfeld. July 27, 2011. I later found (def hello (fn [] “Hello world”) on the clojure website and promptly sent it off to the guys🙂. My “grid” is actually just a vector of 81 elements. Rows, columns and sub-grids are views of the appropriate indices on the vector. Sets up the problem. Uses brute-force in a depth-first manner to solve the puzzle. Learning a new language is alw...
ragstorooks.wordpress.com
Parallel Sudoku | Rags to Rooks
https://ragstorooks.wordpress.com/2011/08/15/parallel-sudoku
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. August 15, 2011. Following on from my previous post. Where I wrote a Sudoku solver in Clojure, I tried to improve the performance of the algorithm by having each branch of my search tree execute in a separate thread. I first tried using the ref. I have tried changing around some of the parameters (increasing thread pool size to 1000, decreasing it to 4 – the number of cores on my laptop, incre...
ragstorooks.wordpress.com
Coding challenge | Rags to Rooks
https://ragstorooks.wordpress.com/2011/11/02/coding-challenge
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; Parallel Sudoku. November 2, 2011. Here’s my brute-force clojure solution to Cedric Beust’s latest coding challenge. The code maintains a count of how many weights each combination can measure before iterating through the map and returning the maximum – which of course turns out to be all 40! Candidate) {maxKey maxValue} (if (or (nil? Running it on the clojure console gives me:.
ragstorooks.wordpress.com
Another Chess Database | Rags to Rooks
https://ragstorooks.wordpress.com/2015/01/05/another-chess-database
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; Coding challenge. Protected: Another Chess Database. January 5, 2015. This content is password protected. To view it please enter your password below:. This post is password protected. Enter the password to view comments. Create a free website or blog at WordPress.com. Follow “Rags to Rooks”. Get every new post delivered to your Inbox. Join 38 other followers.
ragstorooks.wordpress.com
Much better, but still losing… | Rags to Rooks
https://ragstorooks.wordpress.com/2011/02/27/much-better-but-still-losing
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; A very average showing. Writing a peer-peer application. Much better, but still losing…. February 27, 2011. 1 e4 c6 2. d4 d5 3. Nc3 dxe4 4. Nxe4 Nf65. Nxf6 gxf6 6. Nf3. 6… Bg4 7. Be2 e6 8. h3. 8… Bh5 9. Be3 Bd6 10. Qd2 Nd7 11. O-O-O Qc7 12. g4 Bg6 13. Bd3 O-O-O 14. Qe2. 14…Kb8 15. Kb1 Nb6 16. Bxg6 hxg6 17. Nd2. 17… f5 18. Nc4 f4 19. Bc1. 19Nxd6 Qxd6 20. Bd2) (19. Nxb6 Qxb6 20. Bd2). Move with...
ragstorooks.wordpress.com
Writing a peer-peer application | Rags to Rooks
https://ragstorooks.wordpress.com/2011/02/27/writing-a-peer-peer-application
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; Much better, but still losing…. My first ever Gruenfeld. Writing a peer-peer application. February 27, 2011. After spending more than a year writing a p2p application, I thought it was time for me to recap some of our experiences and summarise some of the essentials. Distributed compute and resources. 1 Many small services. Since every invocation of a service could potentially be a request ov...
ragstorooks.wordpress.com
My first ever Gruenfeld | Rags to Rooks
https://ragstorooks.wordpress.com/2011/03/05/my-first-ever-gruenfeld
My thoughts on whatever I am thinking about at the moment, be it work, chess, cricket, or life in general. Laquo; Writing a peer-peer application. My first ever Gruenfeld. March 5, 2011. I first looked at playing the Gruenfeld about a year ago. Shockingly, since then I hadn’t had anybody playing me as white, play 1. d4 and follow up with 2. c4! Anyway, it was a double-edged sword to play a new opening on the back of two (almost 3) losses. Replay here. 7… c5 is the main line). 20 Qc2 Rfe8 21. Rad1. 41 a4 ...