SHARE
TWEET

Battleship test cases

a guest Jun 14th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Format:
  2. In ("H" for hits, "M" for misses)
  3.  
  4. Out (o for hits, X for misses, _ for unknown)
  5.  
  6. -----
  7.  
  8. {{{1, 1}, "H"}, {{1, 2}, "M"}, {{2, 1}, "H"}, {{3, 1}, "H"}, {{5, 5}, "M"}, {{7, 5}, "M"}}
  9.  
  10. {{o, X, _, _, _, _, _, _, _, _},
  11.  {o, _, _, _, _, _, _, _, _, _},
  12.  {o, _, _, _, _, _, _, _, _, _},
  13.  {_, _, _, _, _, _, _, _, _, _},
  14.  {_, _, _, _, X, _, _, _, _, _},
  15.  {_, _, _, _, _, _, _, _, _, _},
  16.  {_, _, _, _, X, _, _, _, _, _},
  17.  {_, _, _, _, _, _, _, _, _, _},
  18.  {_, _, _, _, _, _, _, _, _, _},
  19.  {_, _, _, _, _, _, _, _, _, _}}
  20.  
  21. -----
  22.  
  23. {{{9, 8}, M}, {{3, 1}, M}, {{1, 5}, M}, {{6, 4}, M}, {{10, 6}, M}, {{1, 7}, H}, {{10, 7}, M}}
  24.  
  25. {{_, _, _, _, X, _, o, _, _, _}
  26.  {_, _, _, _, _, _, _, _, _, _}
  27.  {X, _, _, _, _, _, _, _, _, _}
  28.  {_, _, _, _, _, _, _, _, _, _}
  29.  {_, _, _, _, _, _, _, _, _, _}
  30.  {_, _, _, X, _, _, _, _, _, _}
  31.  {_, _, _, _, _, _, _, _, _, _}
  32.  {_, _, _, _, _, _, _, _, _, _}
  33.  {_, _, _, _, _, _, _, X, _, _}
  34.  {_, _, _, _, _, X, X, _, _, _}}
  35.  
  36. -----
  37.  
  38. {{{8, 3}, "M"}, {{10, 2}, "M"}, {{9, 10}, "M"}, {{3, 8}, "M"}, {{2, 6}, "M"}, {{5, 4}, "M"}, {{3, 10}, "M"}, {{7, 3}, "M"}, {{7, 5}, "M"}, {{6, 5}, "M"}, {{6, 10}, "H"}, {{6, 2}, "M"}, {{1, 9}, "H"}, {{1, 8}, "H"}, {{9, 5}, "M"}, {{1, 1}, "M"}, {{7, 2}, "M"}, {{5, 8}, "M"}, {{4, 10}, "M"}}
  39.  
  40. {{X, _, _, _, _, _, _, o, o, _}
  41.  {_, _, _, _, _, X, _, _, _, _}
  42.  {_, _, _, _, _, _, _, X, _, X}
  43.  {_, _, _, _, _, _, _, _, _, X}
  44.  {_, _, _, X, _, _, _, X, _, _}
  45.  {_, X, _, _, X, _, _, _, _, o}
  46.  {_, X, X, _, X, _, _, _, _, _}
  47.  {_, _, X, _, _, _, _, _, _, _}
  48.  {_, _, _, _, X, _, _, _, _, X}
  49.  {_, X, _, _, _, _, _, _, _, _}}
  50.  
  51. -----
  52.  
  53. {{{9, 9}, M}, {{8, 9}, M}, {{3, 6}, M}, {{1, 6}, M}, {{3, 8}, M}, {{7, 9}, M}, {{3, 2}, M}, {{10, 2}, M}, {{7, 4}, M}, {{8, 8}, M}, {{2, 10}, M}, {{2, 3}, M}, {{1, 5}, M}, {{4, 8}, M}, {{7, 1}, M}, {{4, 7}, H}, {{10, 1}, M}, {{4, 4}, M}, {{1, 2}, M}, {{7, 8}, M}, {{8, 7}, H}, {{9, 3}, M}, {{9, 6}, M}, {{3, 10}, M}, {{8, 4}, H}, {{5, 4}, M}, {{5, 8}, M}, {{6, 3}, H}, {{2, 5}, M}, {{3, 5}, M}, {{4, 9}, M}, {{9, 7}, M}, {{10, 9}, M}, {{5, 7}, H}, {{7, 3}, M}, {{8, 2}, M}, {{3, 9}, M}, {{4, 10}, M}, {{5, 6}, M}, {{10, 6}, H}, {{6, 5}, H}, {{1, 4}, M}, {{10, 10}, M}, {{2, 9}, H}, {{8, 6}, H}, {{10, 8}, M}, {{2, 6}, M}, {{6, 9}, M}, {{2, 8}, H}, {{4, 3}, M}, {{6, 4}, H}, {{6, 1}, M}, {{4, 2}, M}, {{2, 7}, M}, {{2, 4}, M}, {{6, 10}, M}, {{6, 8}, M}, {{4, 6}, M}, {{6, 7}, H}, {{8, 1}, M}, {{9, 2}, M}, {{6, 6}, M}}
  54.  
  55. {{_, X, _, X, X, X, _, _, _, _}
  56.  {_, _, X, X, X, X, X, o, o, X}
  57.  {_, X, _, _, X, X, _, X, X, X}
  58.  {_, X, X, X, _, X, o, X, X, X}
  59.  {_, _, _, X, _, X, o, X, _, _}
  60.  {X, _, o, o, o, X, o, X, X, X}
  61.  {X, _, X, X, _, _, _, X, X, _}
  62.  {X, X, _, o, _, o, o, X, X, _}
  63.  {_, X, X, _, _, X, X, _, X, _}
  64.  {X, X, _, _, _, o, _, X, X, X}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top