Merge branch 'daniel-server' of https://github.com/OSU-CS290-Sp18/final-project-group-4 into daniel-server
Add a link to the about page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="content-wrapper">
|
||||
<div class="top-bar">
|
||||
<h1 class="title>GO</h1>
|
||||
</div>
|
||||
<div class="top-bar"><h1 class="title">GO</h1></div>
|
||||
<%= content %>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 54 KiB |
@@ -4,7 +4,7 @@
|
||||
<li id="welcome">"Capture" dots of the opposite color by surrounding them.</li>
|
||||
<li id="welcome">Create a game by filling out the fields below, giving the next player a password in "Their password."</li>
|
||||
<li id="welcome">Join a game by entering the corresponding session name and password.</li>
|
||||
<li id="welcome">Additional rules are found <a href="rules.html">here.</a></li>
|
||||
<li id="welcome">Additional rules are found <a href="/rules">here.</a></li>
|
||||
</ul>
|
||||
<div class="split-wrapper">
|
||||
<div class="split-item">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="../../../public/css/main.css"> </link>
|
||||
<link rel="stylesheet" href="/css/main.css"> </link>
|
||||
</head>
|
||||
<body class="rules-body">
|
||||
<h2 class="rules-title">Rules of Go</h2>
|
||||
@@ -12,7 +12,7 @@
|
||||
<li class="rule">Points are also earned for the dots of that player’s color remaining on the board at the end of the game.</li>
|
||||
<li class="rule">The player with the most points at the end of the game is the winner.</li>
|
||||
<li class="rule">Dots are placed one at a time. Black plays first.</li>
|
||||
<img src=go-example.jpg>
|
||||
<img src="/images/go-example.jpg">
|
||||
<li class="rule">This diagram, (taken from <a href=https://www.britgo.org/intro/intro2.html>britgo</a>) 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.</li>
|
||||
<li class="rule">Each player has an endless amount of dots to place.</li>
|
||||
<li class="rule">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.</li>
|
||||
Reference in New Issue
Block a user