- 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/adamschm...
0 · July 22
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
0 · July 23
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
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/...
Correct up until 1000, although a bit convoluted ^_^
Some links mentioned in the 2048 game talk:
The prezi: https://prezi.com/paumq5aq5zkc/2...The repo of the game code: https://github.com/flash42/adadThe single page cljs lein template: https://github.com/flash42/singl...
We've published both talks to https://www.youtube.com/channel/...
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
Venue, free drinks & popcorn.
Venue, pizza, beer & beverages.
Venue, pizza, beer, non-beer
2,875 New Technologists
503 Product People
83 Cassandra Rebels
ed by the level of growth I've seen since becoming an organizer, it's given me more confidence in my abilities.
— Katie, started NYC ICO
Act now and get 50% off.Until February 1.
Meetup members, Log in