Python Board Game Help


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


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

$ python 
9 17 22 26 4 A 7 C 18 C 19 C 32
Traceback (most recent call last):
  File "", 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: