Cards representation in Prolog
I'm trying to learn Prolog. This are my first steps with this language. As exercise I want to write program which can recognize some poker hands (Straight flush, Four of a kind, Full house etc.). I'm looking for good card representation in Prolog. I need to have possibility to check if one card is bigger than other, if cards are suited and so one. I have started with code: rank(2). rank(3). rank(4). rank(5). rank(6). rank(7). rank(8). rank(9). rank(t). rank(j). rank(q). rank(k). rank(a). value(2, 2). value(3, 3). value(4, 4). value(5, 5). value(6, 6). value(7, 7). value(8, 8). value(9, 9).