Learning Clojure.
Clojure
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
README.md
project.clj

README.md

Clojure Katas

A collection of short problems discussed and solved at Toronto Code Retreat and Toronto Coding Dojo.

Poker hand evaluator

A Clojure library designed to compare hands of 5-card Poker game. The main idea of hand comparison is taken from Peter Norvig's class Design of Computer Programs. src/dojo/poker.clj is in fact a Clojure port of Norvig's program written in Python.

Two hands are compared by hand rank. A hand rank is a tuple with the first element an integer from the range 0..8 defining the type of the hand: 8 is straight flush, 7 is four-of-a-kind, and so on. Second and (optional) third elements of the tuple are used to compare two hands of the same type. For example, [8 14] is Royal flush and it beats [8 10] which is straight flush ten high.

Bank OCR

http://www.codingdojo.org/cgi-bin/wiki.pl?KataBankOCR

Dining philosophers

Clojure STM in action.

Inserting parentheses

Lists and symbols manipulation.

Usage

To run test cases you need Leiningen installed

lein test

License

Copyright © 2012 Andrey Paramonov

Distributed under the Apache License, Version 2.0.