title: Battleship game in python ship placement issues
body: <p>I am creating a battleship game with a board that is 10x10, looking as such:</p>
  
  <pre><code>-------------------------------------------------
   0 |  1 |  2 |  3 |  4 |  5 |  6 |  7 |  8 |  9 |
  -------------------------------------------------
  10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
  -------------------------------------------------
  20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
  -------------------------------------------------
  30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
  -------------------------------------------------
  40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
  -------------------------------------------------
  50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 |
  -------------------------------------------------
  60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |
  -------------------------------------------------
  70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
  -------------------------------------------------
  80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 |
  -------------------------------------------------
  90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 |
  -------------------------------------------------
  </code></pre>
  
  <p>I have been able to print this with my code but now I'm trying to write a function that checks if the choice is a position where a ship can be placed within the board.</p>
  
  <p>This is a hint that I have been given, but I literally cannot figure out how to solve this. </p>
  
  <p>If choice is 88, shipDir is horizontal and shipType is 3, then ship does not fit as it will take positions 88-89-90 and 90 is a position in the next line (and so ship will be out of the board).</p>
  
  <p>If choice is 88, shipDir is vertical and shipType is 3, then also ship does not fit as it will take positions 88-98-108 and 108 is out of the board.</p>
  
  <p>This function also checks if the chosen position is a position that is already taken by another ship on the board.</p>
  
  <p>Function should return <code>False</code> if a ship is out of the board and if a ship position is taken another ship on the board. Function should return <code>True</code> otherwise.</p>
  
  <p>Can anybody help?</p>