diff --git a/README.md b/README.md new file mode 100644 index 0000000..eb786ab --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +Battleship +========== + +The game +-------- + +Long version: [see wikipedia](https://secure.wikimedia.org/wikipedia/en/wiki/Battleship_game) + +* Each player starts with a fleet of 5 ships, of length 5, 4, 3, 3, and 2. +* Each player places their ships horizontally or vertically on a 10x10 grid; + this is not visible to their opponent. +* Players take turns to fire at positions on the grid, gradually revealing + where their opponent’s ships are and are not located. +* A ship is destroyed when every cell of a ship has been hit. +* The winner is the first player to destroy their opponent’s fleet. + +You lose if: + +* You do not place the correct number and size of ships. +* You place your fleet in impossible positions (ships overlapping or partly off + the board). +* Your code raises an exception. +* All your ships have been sunk. + + +How To Play +-------------- +Will Add soon diff --git a/css/style.css b/css/style.css index 1304bfc..7c58716 100644 --- a/css/style.css +++ b/css/style.css @@ -171,7 +171,7 @@ td { height: 45px; background-image: url("/img/carrier-3.png"); background-repeat: no-repeat; - background-size: 101% 101%; + background-size: 100% 100%; margin: 0; transform: rotate(-90deg); } @@ -224,7 +224,7 @@ td { height: 45px; background: url("/img/battleship-3.png"); background-repeat: no-repeat; - background-size: 100% 100%; + background-size: 101% 101%; margin: 0; transform: rotate(-90deg); @@ -233,7 +233,7 @@ td { #submarine-0 { column-width: 45px; height: 45px; - background-image: url("/img//ubmarine-0.png"); + background-image: url("/img//submarine-0.png"); background-repeat: no-repeat; background-size: 101% 101%; margin: 0; @@ -358,5 +358,5 @@ td { .invisible { - visibility: ; + visibility: hidden; } \ No newline at end of file diff --git a/index.html b/index.html index b319232..2709d2d 100644 --- a/index.html +++ b/index.html @@ -74,16 +74,16 @@