Compare commits

...

5 Commits

Author SHA1 Message Date
7190ea2ded Make cell change color on corner hover. 2018-06-03 13:09:20 -07:00
sessionm21
e1ecf2e0ac
Remove extra commas from README 2018-06-02 21:50:23 -07:00
sessionm21
81ddc8b09f
Fix profile link 2018-06-02 21:29:19 -07:00
sessionm21
788c7ad6c0 update README 2018-06-02 21:28:07 -07:00
sessionm21
8081f3a483 using svg images 2018-06-02 21:07:38 -07:00
7 changed files with 262 additions and 9 deletions

View File

@ -1,14 +1,25 @@
# Go # Go
TODO: Write a description here This is an implementation of a game of GO in web application form.
## Installation ## Installation
TODO: Write installation instructions here TODO: Write installation instructions for Windows
___
TODO: Write installation instructions for Mac
___
Arch Linux:
1. Install dependencies: `pacman -S crystal shards ruby-sass`
2. Install Shards: `shards install`
3. TODO: Add elm compilation
4. Compile SASS Style: `make generate-css`
5. Compile Crystal app: `crystal build --release src/Go.cr`
6. Run with `./Go`
___
## Usage ## Usage
TODO: Write usage instructions here While crystal app is running, go to localhost with port of 3000 in the browser.
## Development ## Development
@ -25,3 +36,5 @@ TODO: Write development instructions here
## Contributors ## Contributors
- [[your-github-name]](https://github.com/[your-github-name]) Danila Fedorin - creator, maintainer - [[your-github-name]](https://github.com/[your-github-name]) Danila Fedorin - creator, maintainer
- [sessionm21](https://github.com/sessionm21) Matthew Sessions - hax0r, maintainer

View File

@ -22,10 +22,10 @@ body {
margin: auto; margin: auto;
border-radius: 10px; } border-radius: 10px; }
.black-player .overlay:hover { .black-player .board-cell:hover .overlay {
background-color: black; } background-color: black; }
.white-player .overlay:hover { .white-player .board-cell:hover .overlay {
background-color: white; } background-color: white; }
.board-cell { .board-cell {

View File

@ -33,14 +33,14 @@ body {
border-radius: 10px; border-radius: 10px;
} }
.black-player .overlay { .black-player {
&:hover { .board-cell:hover .overlay {
background-color: black; background-color: black;
} }
} }
.white-player .overlay { .white-player {
&:hover { .board-cell:hover .overlay {
background-color: white; background-color: white;
} }
} }

59
public/svg/black.svg Normal file
View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="100"
width="100"
version="1.1"
id="svg4"
sodipodi:docname="black.svg"
inkscape:version="0.92.2 2405546, 2018-03-11">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1159"
inkscape:window-height="719"
id="namedview6"
showgrid="false"
inkscape:zoom="2.36"
inkscape:cx="50"
inkscape:cy="50"
inkscape:window-x="307"
inkscape:window-y="38"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<circle
cx="50"
cy="50"
r="40"
stroke="black"
stroke-width="3"
fill="red"
id="circle2"
style="fill:#000000" />
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

58
public/svg/circle.svg Normal file
View File

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="100"
width="100"
version="1.1"
id="svg4"
sodipodi:docname="circle.svg"
inkscape:version="0.92.2 2405546, 2018-03-11">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1159"
inkscape:window-height="719"
id="namedview6"
showgrid="false"
inkscape:zoom="2.36"
inkscape:cx="50"
inkscape:cy="50"
inkscape:window-x="307"
inkscape:window-y="38"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<circle
cx="50"
cy="50"
r="40"
stroke="black"
stroke-width="3"
fill="red"
id="circle2"
style="fill:#000000" />
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

64
public/svg/cross.svg Normal file
View File

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="100"
width="100"
version="1.1"
id="svg14"
sodipodi:docname="crossB.svg"
inkscape:version="0.92.2 2405546, 2018-03-11">
<metadata
id="metadata20">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs18" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1028"
id="namedview16"
showgrid="false"
inkscape:zoom="8.27"
inkscape:cx="50"
inkscape:cy="50"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg14" />
<line
x1="50"
y1="0"
x2="50"
y2="100"
style="stroke:rgb(0,0,0);stroke-width:2"
id="line10" />
<line
x1="0"
y1="50"
x2="100"
y2="50"
style="stroke:rgb(0,0,0);stroke-width:2"
id="line12" />
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

59
public/svg/white.svg Normal file
View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="100"
width="100"
version="1.1"
id="svg4"
sodipodi:docname="white.svg"
inkscape:version="0.92.2 2405546, 2018-03-11">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1159"
inkscape:window-height="719"
id="namedview6"
showgrid="false"
inkscape:zoom="2.36"
inkscape:cx="50"
inkscape:cy="50"
inkscape:window-x="307"
inkscape:window-y="38"
inkscape:window-maximized="0"
inkscape:current-layer="svg4" />
<circle
cx="50"
cy="50"
r="40"
stroke="black"
stroke-width="3"
fill="red"
id="circle2"
style="fill:#ffffff" />
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB