diff clojure/com/aurellem/rival_name.clj @ 143:cd930ed1fd4d

determined location of sixth pokemon's name's first character.
author Robert McIntyre <rlm@mit.edu>
date Mon, 19 Mar 2012 20:30:37 -0500
parents 424510993296
children
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/rival_name.clj	Mon Mar 19 19:56:55 2012 -0500
     1.2 +++ b/clojure/com/aurellem/rival_name.clj	Mon Mar 19 20:30:37 2012 -0500
     1.3 @@ -32,7 +32,110 @@
     1.4          (println codes)
     1.5          (view-rival-name codes)
     1.6          (reset! i (+ 5 @i))))))
     1.7 -      
     1.8 +
     1.9 +(def character-code->character
    1.10 +  {
    1.11 +   0x00   "end-of-name-sentinel"
    1.12 +   0x60   "A-bold"
    1.13 +   0x61   "B-bold"
    1.14 +   0x62   "C-bold"
    1.15 +   0x63   "D-bold"
    1.16 +   0x64   "E-bold"
    1.17 +   0x65   "F-bold"
    1.18 +   0x66   "G-bold"
    1.19 +   0x67   "H-bold"
    1.20 +   0x68   "I-bold"
    1.21 +   0x69   "V-bold"
    1.22 +   0x6A   "S-bold"
    1.23 +   0x6B   "L-bold"
    1.24 +   0x6C   "M-bold"
    1.25 +   0x80   "A"
    1.26 +   0x81   "B"
    1.27 +   0x82   "C"
    1.28 +   0x83   "D"
    1.29 +   0x84   "E"
    1.30 +   0x85   "F"
    1.31 +   0x86   "G"
    1.32 +   0x87   "H"
    1.33 +   0x88   "I"
    1.34 +   0x89   "J"
    1.35 +   0x8A   "K"
    1.36 +   0x8B   "L"
    1.37 +   0x8C   "M"
    1.38 +   0x8D   "N"
    1.39 +   0x8E   "O"
    1.40 +   0x8F   "P"
    1.41 +   0x90   "Q"
    1.42 +   0x91   "R"
    1.43 +   0x92   "S"
    1.44 +   0x93   "T"
    1.45 +   0x94   "U"
    1.46 +   0x95   "V"
    1.47 +   0x96   "W"
    1.48 +   0x97   "X"
    1.49 +   0x98   "Y"
    1.50 +   0x99   "Z"
    1.51 +   0x9A   "("
    1.52 +   0x9B   ")"
    1.53 +   0x9C   ":"
    1.54 +   0x9D   ";"
    1.55 +   0xA0   "a"
    1.56 +   0xA1   "b"
    1.57 +   0xA2   "c"
    1.58 +   0xA3   "d"
    1.59 +   0xA4   "e"
    1.60 +   0xA5   "f"
    1.61 +   0xA6   "g"
    1.62 +   0xA7   "h"
    1.63 +   0xA8   "i"
    1.64 +   0xA9   "j"
    1.65 +   0xAA   "k"
    1.66 +   0xAB   "l"
    1.67 +   0xAC   "m"
    1.68 +   0xAD   "n"
    1.69 +   0xAE   "o"
    1.70 +   0xAF   "p"
    1.71 +   0xB0   "q"
    1.72 +   0xB1   "r"
    1.73 +   0xB2   "s"
    1.74 +   0xB3   "t"
    1.75 +   0xB4   "u"
    1.76 +   0xB5   "v"
    1.77 +   0xB6   "w"
    1.78 +   0xB7   "x"
    1.79 +   0xB8   "y"
    1.80 +   0xB9   "z"
    1.81 +   0xBA   "e-with-grave"
    1.82 +   0xE0   "'"
    1.83 +   0xE1   "PK"
    1.84 +   0xE2   "MN"
    1.85 +   0xE6   "?"
    1.86 +   0xE7   "!"
    1.87 +   0xE8   "."
    1.88 +   0xEF   "male-symbol"
    1.89 +   0xF0   "pokemon-money-symbol"
    1.90 +   0xF1   "."
    1.91 +   0xF2   "/"
    1.92 +   0xF3   ","
    1.93 +   0xF4   "female-symbol"
    1.94 +   0xF6   "0 "
    1.95 +   0xF7   "1"
    1.96 +   0xF8   "2"
    1.97 +   0xF9   "3"
    1.98 +   0xFA   "4"
    1.99 +   0xFB   "5"
   1.100 +   0xFC   "6"
   1.101 +   0xFD   "7"
   1.102 +   0xFE   "8"
   1.103 +   0xFF   "9"
   1.104 +   })
   1.105 +
   1.106 +(def character->character-code
   1.107 +  (zipmap (vals character-code->character)
   1.108 +          (keys character-code->character)))
   1.109 +
   1.110 +
   1.111 +
   1.112  
   1.113  
   1.114  ;; 0x00 :  end-of-name-sentinel
   1.115 @@ -293,3 +396,5 @@
   1.116  ;; 0xFF :  9
   1.117             
   1.118                  
   1.119 +
   1.120 +