Created
April 29, 2012 16:52
-
-
Save mistercam/2551852 to your computer and use it in GitHub Desktop.
Defs required to customize the look of a Swing-based Reversi game
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
(def footer-height 30) ; space below the board to show the current player | |
(def piece-size 70) ; the width and height of an individual board square | |
(def gap-size 5) ; the vertical and horizontal spacing between squares | |
(def padding 5) ; the spacing within a square that surrounds a piece | |
(def board-size (+ (* 8 piece-size) (* 7 gap-size))) ; the board size | |
(def color-white (Color. 255 255 255)) | |
(def color-black (Color. 0 0 0)) | |
(def color-green (Color. 0 136 0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment