This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
* { | |
box-sizing: border-box; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns goban | |
(:require [clojure.string :as string] | |
hiccup.core)) | |
(let [CEL 5.0 ; cell dimension in SVG viewport units | |
BDR 3.0 ; border width | |
PXR 10 ; ratio of pixels to SVG vw | |
BOA (* CEL 18) ; board side | |
DIM (+ BOA (* BDR 2))] ; goban side |