Python Board Game Help


#1

Python3.4.2: i am working on this problem and it is a board game and it goes through the board game and finds the letters and i make it find one specific letter but what would i change if i wanted to print out all of the board's letters an example input i would like to work is 9 17 22 26 4 A 7 C 18 C 19 C 32 That would output: ABCBACCBACAB but i can not get it to any tips? i also a picture of the exact rules for it https://d20i4x3ol1vz2n.cloudfront.net/private_message_attachments/8921/d9250e52ec3fac1b3804ce7d0d28a6192870f6ff.jpg
HERES THE CODE https://gist.github.com/Terrachar/b38397f4d89959ac9a03


#2

Not sure what you're stuck on and the code you posted appears to crash while reading input!

$ python codejum.py 
9 17 22 26 4 A 7 C 18 C 19 C 32
Traceback (most recent call last):
  File "codejum.py", line 16, in <module>
    board[int(inp[i+1])-1] = inp[i]
IndexError: list index out of range

The problem has very few combinations so there's no need to be clever about the solution, brute force will do fine.

It's just a bit messy to represent it, took me an embarassing amount of time, code ended up a bit messy as well. We can compare if you post something that appears to be correct! :stuck_out_tongue_winking_eye: