TypeError
Python 3.6.4: /home/centos/qiskit/qiskit/bin/python
Wed Apr 4 14:20:51 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/centos/public_html/cgi-bin/qbattleship.py in ()
     89                 # depends on which ship it is
     90                 for ship in [0,1,2]:
=>   91                     if ( position == shipPos[player][ship] ):
     92                         frac = 1/(ship+1)
     93                         # add this fraction of a NOT to the QASM
position = 2, shipPos = [<map object>, <map object>], player = 0, ship = 0

TypeError: 'map' object is not subscriptable
      args = ("'map' object is not subscriptable",)
      with_traceback = <built-in method with_traceback of TypeError object>