diff --git a/public/css/main.css b/public/css/main.css index c7569c9..574ae15 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -70,6 +70,7 @@ div.top-bar { padding: 20px; max-width: 500px; margin: auto; + margin-top: 20px; border-radius: 10px; } .black-player .board-cell:hover .overlay { diff --git a/public/css/style.css b/public/css/style.css index 8b6346c..705d363 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -2,6 +2,7 @@ body { font-family: Roboto; background-image: url(/images/clouds.jpg); background-color: #F5F7FA; + background-size: cover; color: #2d2d2d; } diff --git a/public/images/clouds.jpg b/public/images/clouds.jpg index 17d7526..6a33787 100644 Binary files a/public/images/clouds.jpg and b/public/images/clouds.jpg differ diff --git a/public/scss/main.scss b/public/scss/main.scss index 8911a84..3b133a3 100644 --- a/public/scss/main.scss +++ b/public/scss/main.scss @@ -90,6 +90,7 @@ div.top-bar { padding: 20px; max-width: 500px; margin: auto; + margin-top: 20px; border-radius: 10px; } diff --git a/src/Go.cr b/src/Go.cr index e9b3e89..88ab973 100644 --- a/src/Go.cr +++ b/src/Go.cr @@ -166,6 +166,10 @@ get "/about" do |env| render "src/Go/views/about.ecr" end +get "/rules" do |env| + render "src/Go/views/rules.ecr" +end + get "/" do |env| render "src/Go/views/index.ecr", "src/Go/views/base.ecr" end diff --git a/src/Go/views/rules.html b/src/Go/views/rules.ecr similarity index 95% rename from src/Go/views/rules.html rename to src/Go/views/rules.ecr index 38ebb14..bc59eba 100644 --- a/src/Go/views/rules.html +++ b/src/Go/views/rules.ecr @@ -1,7 +1,7 @@ - +

Rules of Go

@@ -12,7 +12,7 @@
  • Points are also earned for the dots of that player’s color remaining on the board at the end of the game.
  • The player with the most points at the end of the game is the winner.
  • Dots are placed one at a time. Black plays first.
  • - +
  • This diagram, (taken from britgo) shows the black player capturing a white stone at a (location a shows an example of a black “eye”). The black player has 15 points of territory - 10 in the bottom right corner and 5 at the top of the board. They also earn a point for capturing a white dot at location a, so their total is 16 points. The white player has 17 points - 11 along the left side and 6 in the top right corner. Therefore, the white player would win by 1 point.
  • Each player has an endless amount of dots to place.
  • A player can choose to pass on a turn. This usually occurs when the player cannot place any more dots, if they are able to place it in their own “eye” or the “eye” of the other player, causing it to be captured. The game ends if both players to pass their turn.