- Adam Peresztegi: How I implemented 2048 (from a ClojureScript novice)
- Deyan Yotsov: Typed Clojure
Wet your feet with (http://en.wikipedia.org/wiki/Mancala)[Mancala], an ancient African board game which looks deceptively simple but it's not.
You can follow the talks at http://ustre.am/1eDma
Join or login to comment.
That's what we created at the coding dojo: https://gist.github.com/adamschmideg/133f055ddb1359ed81d0
0 · July 22, 2014
on the way back home I came up with a solution for yesterday's dojo https://gist.github.co... .. There's still room for improvement: - it's putting weight on the stack as the recursion is not teil recursion, I'm not sure how romans wrote zero, now here it's just a "".
1 · July 23, 2014
0 · July 23, 2014
nice solution :)
hi Gyuri, i forked your solution at https://gist.github.co...
cool, that tackles the stack issue. Is using `assert` or `:pre` more preferable? http://blog.fogus.me/... core.typed could also come in with its annotations
hello Janos, I've forked your solution at https://gist.github.co...
The subtractions of the same value can be replaced with one subtraction (calculating the division).
Moreover there is speedup as the roman-digits size can be decreased as less and less numbers are transformed to roman numbers. So the head elements can be dropped and only the relevant tail can be used in the next iteration.
0 · July 31, 2014
hello, thank you for your remarks, i fixed the code. i do not see the link you posted. best regards, e.
The correct link: https://gist.github.co...Unfortunately, comments cannot be edited here! >:O
On the meetup the first solution which came into my mind was creating triplets with the partitions from the roman digits:(("I" "V" "X") ("X" "L" "C") ("C" "D" "M")).And based on that create a conditional for each pattern.
My take on the problem, without peeking the others' solution: https://gist.github.com/mqrelly/16f162289a4970b8fe06
Correct up until 1000, although a bit convoluted ^_^
Some links mentioned in the 2048 game talk:
The prezi: https://prezi.com/paumq5aq5zkc/2048-in-clojurescript/The repo of the game code: https://github.com/flash42/adadThe single page cljs lein template: https://github.com/flash42/single-page-cljs-template
We've published both talks to https://www.youtube.com/channel/UCm0Opgi6WZVdzeiYv3DG1dA/videos
Next: Invite friends
The group aims to bring together people who share an interest in Clojure (and more broadly, functional programming). Battle-hardened Clojurians and paren-fearing OO programmers are equally welcome.
You can watch past talks too.
Feel free to join our Facebook group: Clojure Budapest
bits and pieces
1,118 IoT enthusiast
403 Data Visualization Evangelists
1,944 Designers and Techies
331 Frontend Fighters
599 Data Heroes
Meetup members, Log in