comparison clojure/com/aurellem/exp/struggle.txt @ 214:62969eb07e04

fixed give-pokemon to give a properly formatted pokemon for pokemon with less than 4 moves.
author Robert McIntyre <rlm@mit.edu>
date Fri, 23 Mar 2012 19:25:21 -0500
parents
children d7f2e0384d24
comparison
equal deleted inserted replaced
212:8523faa122b0 214:62969eb07e04
1 ;; struggle works
2
3 [ccd5 (4 5 6 7 8)]
4 [cfe8 (5 4 3 2 1)]
5 [d02c (4 3 2 1 0)]
6 [d187 (4 3 2 1 0)]
7
8 ;; struggle doesn't work
9
10 [ccd5 (0 1 2 3 4)]
11 [cfe8 (0 4 3 2 1)]
12 [d02c (32 3 2 1 0)]
13 [d187 (4 3 2 1 0)]
14
15
16
17
18
19
20
21 ran:
22
23 (clojure.pprint/pprint (temporal-compare jiggly-4-pp jiggly-3-pp
24 jiggly-2-pp jiggly-1-pp jiggly-0-pp))
25
26 and:
27
28 (clojure.pprint/pprint (temporal-compare syn-jiggly-4-pp
29 syn-jiggly-3-pp syn-jiggly-2-pp syn-jiggly-1-pp syn-jiggly-0-pp))
30
31 to generate the above, then filtered manually