Rework /src

This commit is contained in:
Neale Pickett 2014-03-11 18:25:13 +00:00
parent 5cfa9b4639
commit 4edf1f8267
43 changed files with 29 additions and 13999 deletions

View File

@ -12,7 +12,7 @@ COPY += face.png chumby-photo.cgi
COPY += format.css default.css print.css
#COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf
COPY += portal.png portal.cgi
COPY += g.cgi cgitrc cgit-header.html cgit.css
COPY += g.cgi cgitrc cgit-header.html cgit.css about-filter.sh
# Directories in which %.mdwn generates %.html
PLAIN = . papers poems misc

15
cgitrc
View File

@ -1,12 +1,15 @@
strict-export=git-daemon-export-ok
snapshots=zip tar.gz
clone-prefix=http://woozle.org/~neale/g.cgi
#clone-url=http://woozle.org/~neale/projects/$CGIT_REPO_URL
scan-path=/home/neale/projects
virtual-root=/~neale/g.cgi/
css=/~neale/cgit.css
about-filter=/home/neale/public_html/about-filter.sh
readme=:README
snapshots=zip tar.gz
clone-prefix=http://woozle.org/neale/g.cgi
scan-path=/home/neale/projects
virtual-root=/neale/g.cgi/
css=/neale/cgit.css
enable-index-owner=0
root-title=Neale's git projects
root-desc=

View File

@ -5,7 +5,7 @@ body {
background-color: #eee;
}
h1:first-child {
body>h1:first-child {
background-color: #cc8;
margin-top: 0;
}

BIN
face.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -1,3 +0,0 @@
#! /bin/sh
GITWEB_CONFIG=/home/neale/public_html/gitweb.conf /usr/lib/cgi-bin/gitweb.cgi "$@"

View File

@ -1,15 +0,0 @@
$projectroot = "/home/neale/projects";
$home_link = "/~neale/gitweb.cgi";
$home_link_str = "projects";
$logo = "/~neale/git-logo.png";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = "/home/neale/projects/public.txt";
$site_name = "Neale's git repositories";
@stylesheets = ("/~neale/default.css", "/~neale/gitweb.css");
$site_header = "$projectroot/header.xml";
$site_footer = "/home/neale/public_html/footer.html";
undef $favicon;

View File

@ -1,438 +0,0 @@
body {
max-width: inherit;
}
span.cntrl {
border: dashed #aaaaaa;
border-width: 1px;
padding: 0px 2px 0px 2px;
margin: 0px 2px 0px 2px;
}
img.logo {
float: right;
border-width: 0px;
}
div.page_header {
padding: 8px;
font-size: 18px;
font-weight: bold;
background-color: #d9d8d1;
}
div.page_header a:visited, a.header {
color: #0000cc;
}
div.page_header a:hover {
color: #880000;
}
div.page_nav {
padding: 8px;
}
div.page_nav a:visited {
color: #0000cc;
}
div.page_path {
padding: 8px;
font-weight: bold;
border: solid #d9d8d1;
border-width: 0px 0px 1px;
}
div.page_footer {
height: 17px;
padding: 4px 8px;
background-color: #d9d8d1;
}
div.page_footer_text {
float: left;
color: #555555;
font-style: italic;
}
div.page_body {
padding: 8px;
font-family: monospace;
}
div.title, a.title {
display: block;
padding: 6px 8px;
font-weight: bold;
background-color: #edece6;
text-decoration: none;
color: #000000;
}
a.title:hover {
background-color: #fff;
}
div.title_text {
padding: 6px 0px;
border: solid #d9d8d1;
border-width: 0px 0px 1px;
font-family: monospace;
}
div.log_body {
padding: 8px 8px 8px 150px;
}
span.age {
position: relative;
float: left;
width: 142px;
font-style: italic;
}
div.page_body span.signoff {
color: #888888;
}
div.log_link {
padding: 0px 8px;
font-size: 10px;
font-family: sans-serif;
font-style: normal;
position: relative;
float: left;
width: 136px;
}
div.list_head {
padding: 6px 8px 4px;
border: solid #d9d8d1;
border-width: 1px 0px 0px;
font-style: italic;
}
div.author_date {
padding: 8px;
border: solid #d9d8d1;
border-width: 0px 0px 1px 0px;
font-style: italic;
}
a.list {
text-decoration: none;
color: #000000;
}
a.subject, a.name {
font-weight: bold;
}
table.tags a.subject {
font-weight: normal;
}
a.list:hover {
text-decoration: underline;
color: #880000;
}
a.text {
text-decoration: none;
color: #0000cc;
}
a.text:visited {
text-decoration: none;
color: #880000;
}
a.text:hover {
text-decoration: underline;
color: #880000;
}
table {
padding: 8px 4px;
}
table.project_list {
border-spacing: 0;
clear: both;
}
table.diff_tree {
border-spacing: 0;
font-family: monospace;
}
table.blame {
border-collapse: collapse;
}
table.blame td {
padding: 0px 5px;
font-size: 12px;
vertical-align: top;
}
th {
padding: 2px 5px;
font-size: 12px;
text-align: left;
}
tr.light:hover {
background-color: #fff;
}
tr.dark {
background-color: #c6c6c0;
}
tr.dark2 {
background-color: #c6c6c0;
}
tr.dark:hover {
background-color: #fff;
}
td {
padding: 2px 5px;
font-size: 12px;
vertical-align: top;
}
td.link, td.selflink {
padding: 2px 5px;
font-family: sans-serif;
font-size: 10px;
}
td.selflink {
padding-right: 0px;
}
td.sha1 {
font-family: monospace;
}
td.error {
color: red;
background-color: yellow;
}
td.current_head {
text-decoration: underline;
}
table.diff_tree span.file_status.new {
color: #008000;
}
table.diff_tree span.file_status.deleted {
color: #c00000;
}
table.diff_tree span.file_status.moved,
table.diff_tree span.file_status.mode_chnge {
color: #777777;
}
table.diff_tree span.file_status.copied {
color: #70a070;
}
/* age2: 60*60*24*2 <= age */
table.project_list td.age2, table.blame td.age2 {
font-style: italic;
}
/* age1: 60*60*2 <= age < 60*60*24*2 */
table.project_list td.age1 {
color: #009900;
font-style: italic;
}
table.blame td.age1 {
color: #009900;
background: transparent;
}
/* age0: age < 60*60*2 */
table.project_list td.age0 {
color: #009900;
font-style: italic;
font-weight: bold;
}
table.blame td.age0 {
color: #009900;
background: transparent;
font-weight: bold;
}
td.pre, div.pre, div.diff {
font-family: monospace;
font-size: 12px;
white-space: pre;
}
td.mode {
font-family: monospace;
}
/* styling of diffs (patchsets): commitdiff and blobdiff views */
div.diff.header,
div.diff.extended_header {
white-space: normal;
}
div.diff.header {
font-weight: bold;
background-color: #edece6;
margin-top: 4px;
padding: 4px 0px 2px 0px;
border: solid #d9d8d1;
border-width: 1px 0px 1px 0px;
}
div.diff.header a.path {
text-decoration: underline;
}
div.diff.extended_header,
div.diff.extended_header a.path,
div.diff.extended_header a.hash {
color: #777777;
}
div.diff.extended_header .info {
color: #b0b0b0;
}
div.diff.extended_header {
background-color: #f6f5ee;
padding: 2px 0px 2px 0px;
}
div.diff a.path,
div.diff a.hash {
text-decoration: none;
}
div.diff a.path:hover,
div.diff a.hash:hover {
text-decoration: underline;
}
div.diff.to_file a.path,
div.diff.to_file {
color: #007000;
}
div.diff.add {
color: #008800;
}
div.diff.from_file a.path,
div.diff.from_file {
color: #aa0000;
}
div.diff.rem {
color: #cc0000;
}
div.diff.chunk_header {
color: #990099;
border: dotted #ffe0ff;
border-width: 1px 0px 0px 0px;
margin-top: 2px;
}
div.diff.incomplete {
color: #cccccc;
}
div.index_include {
border: solid #d9d8d1;
border-width: 0px 0px 1px;
padding: 12px 8px;
}
div.page_header form {
margin: 0;
}
div.search {
font-size: 12px;
font-weight: normal;
padding-top: 8px;
}
td.linenr {
text-align: right;
}
a.linenr {
color: #999999;
text-decoration: none
}
a.rss_logo {
float: right;
padding: 3px 0px;
width: 35px;
line-height: 10px;
border: 1px solid;
border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e;
color: #ffffff;
background-color: #ff6600;
font-weight: bold;
font-family: sans-serif;
font-size: 10px;
text-align: center;
text-decoration: none;
}
a.rss_logo:hover {
background-color: #ee5500;
}
span.refs span {
padding: 0px 4px;
font-size: 10px;
font-weight: normal;
border: 1px solid;
background-color: #ffaaff;
border-color: #ffccff #ff00ee #ff00ee #ffccff;
}
span.refs span.ref {
background-color: #aaaaff;
border-color: #ccccff #0033cc #0033cc #ccccff;
}
span.refs span.tag {
background-color: #ffffaa;
border-color: #ffffcc #ffee00 #ffee00 #ffffcc;
}
span.refs span.head {
background-color: #aaffaa;
border-color: #ccffcc #00cc33 #00cc33 #ccffcc;
}
span.atnight {
color: #cc0000;
}
span.match {
color: #e00000;
}

View File

@ -3,30 +3,25 @@ Title: Software
I write software for a living. I like doing it so much that sometimes I
even write software just for fun.
My [version control](/~neale/g.cgi) holds the source code to most
of these packages.
Networky things
-------------------------------
* [Eris HTTPd](eris.html), a small HTTP (web) server
* [pysieved](http://www.gitorious.net/pysieved/pages/Home), a Python ManageSieve server
* [CBot](/~neale/g.cgi/bot), an IRC bot you program with shell scripts or whatever other language you prefer
* [Firebot](firebot.html), an easily-extended IRC bot in continuous use since 1996
* [Python IPQUEUE library](ipqueue/)
* [netre-tools](/~neale/g.cgi/netre-tools), protocol reverse-engineering toolset
Current Projects
----------------
X11 things
-------------------------------
* [xss](xss.html), a simple (suckless) screen saver for X11
* [dwm hacks](dwm/), my tweaks to [dwm](http://dwm.suckless.org/)
* [Woozle Scoreboard](http://woozle.org/scoreboard/), a browser-based roller derby scorebard
* [Hardware Scoreboard](/neale/g.cgi/avr/scoreboard/about/), a microcontroller-based LED roller derby scoreboard
* [Runit-Init](/neale/g.cgi/aur/runit-init/about/), an /sbin/init replacement based on busybox
* [Eris HTTPd](/neale/g.cgi/eris/about/), a small HTTP (web) server
* [9wm](/neale/g.cgi/x11/9wm/about/), an emulation of the Plan 9 window manager
* [xss](/neale/g.cgi/x11/xss/about/), a suite of X screensaver programs
* [Penalty Timer](https://play.google.com/store/apps/details?id=org.woozle.penaltytimer), a roller derby penalty timer for Android
Various and sundry things
-------------------------------
* [Roller Derby Scoreboard](http://woozle.org/scoreboard/)
* The [Universal Boardgame Kit](ubk/)
* [eguile](eguile/), like PHP for Guile Scheme
* [escm](escm.html), like PHP for Gauche Scheme and others
* [Python hacks](python/) of diminutive size and quality
* [Postscript hacks](postscript/) of diminutive size and quality
* [Other hacks](misc/) of diminutive size and quality
Other Projects
--------------
* [Networking software](/neale/g.cgi/net/)
* [Roller Derby software](/neale/g.cgi/derby/)
* [X11 software](/neale/g.cgi/x11/)
* [CTF software](/neale/g.cgi/ctf/): related to [Dirtbags CTF](http://dirtbags.net/ctf/)
* [J2ME software](/neale/g.cgi/j2me/), for old phones (before the smartphone)
* [Everything in one place](/neale/g.cgi/)

View File

@ -1,4 +0,0 @@
index.html: - 32185d2d2867b90b2d83c6f60ed16b18 - -
index.ptml: 1042050163 - 11f85b0cd5cbf4c958030e8155e57045 -
links.html: - 2a2db01d6443e4f020609339ac73eade - -
links.ptml: 1042063611 - ff6b345a811891a6d238545cf9ae9407 -

View File

@ -1,6 +0,0 @@
HTMLROOT := $(HOME)/public_html
include $(HTMLROOT)/Makefile
SRCDIR = /home/neale/doc/ps
index.html: $(filter-out index.html, $(HTML))

View File

@ -1,69 +0,0 @@
Title: Universal Board Game Kit
What it is
----------
<a href="mine.jpg" class="figure"><img src="mine-sm.jpg" alt="My kit"></a>
The UBK is a collection of pieces and boards which allows you to play a number of board games with limited resources. This is perfect for people who like board games but don't have a lot of real estate or cash to devote to them: college students, people in tiny apartments, cheapskates, or just plain freaks.
Download
--------
All components are distributed under the [GPL
v2.0](http://www.gnu.org/licenses/gpl-2.0.html) unless otherwise
noted. This allows you to copy and modify freely, but you may not
restrict others' access to the source code.
syscmd("src/ubk/parts.sh")
You can download the [source code](/~neale/g.cgi/ubk) if you'd
like it.
Game Parts Required
-------------------
The Universal Boardgame Kit is designed to re-use pieces you already
own, or can make yourself.
* Some markers: coins, the pawns from commercial games like Cluedo or
Monopoly, or the printable "Chess Coins" provided above. Some games
(like Pachesi) require multiple markers in the same group.
* Many games require at least one 6-sided die. Some require up to 6
dice.
* A few games (Chess, Xiang Qi) are best played with chess pieces.
The "Chess Coins" board can be printed and cut out for this purpose.
Putting (most of) your existing board game pieces into a single
container is convenient and a good space-saver. Many games consist of
merely a board, an instruction set, and a handful of pieces, in a very
large and otherwise useless box. By using pieces you already own, most
people will find they already have all the pieces they need for every
game in the Universal Boardgame Kit.
Boards we should add
--------------------
* [Farkle](http://en.wikipedia.org/wiki/Farkle) (trivial)
* Cluedo
* Monopoly
* Chinese Checkers
* Reversi
* Mancala (just need an egg carton)
* Royal Game of Ur
* Pente
* Solitare
* Fox and Geese
How you can help
----------------
Make some boards! Design them however you want--I do mine by hand in
PostScript, but you can use whatever tools you'd like--and send me a
PDF file of the board and the source file: HTML, DIA, VISIO, Word, or
whatever you used to make it. If you can't generate PDF files or don't
know how to, email me and I can probably help you out.

View File

View File

@ -1,340 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@ -1,8 +0,0 @@
PS = $(wildcard *.ps)
PDF = $(patsubst %.ps, %.pdf, $(PS))
kit.tar.gz: $(wildcard *.txt) $(PS) $(PDF)
tar czf $@ $^
%.pdf: %.ps
ps2pdf $<

View File

@ -1,157 +0,0 @@
* The Games
** Cosmic Wimp-out
5 6-sided dice, 1 of a special color
** Checkers
* 8x8 Checkerboard
* 12 coins for each of two colors. These coins must be reversible,
with different patterns on front and back
** Polish Draughts
* 10x10 checkerboard
* 15 coins for each of two colors
** Chess
* 8x8 Checkerboard
* 8 pawns (x2 colors)
* 2 rooks, 2 bishops, 2 knights, 1 king, 1 queen (x2 colors)
** Clue
* 24x25 grid gameboard
* 6 pawns (yellow, red, purple, green, white blue)
* 6 weapons (rope, revolver, candlestick, knife, pipe, wrench)
* 21 cards (1 for each pawn, weapon, and for each of 9 rooms)
* 1d6
** Scrabble
* Letters
* Special scrabble board
** Trivial Pursuit
* 6 pawns (pink, brown, yellow, blue, orange, green)
* 36 tokens (6 each of same colors)
* 1d6
* Trivial Pursuit cards
** Chinese Checkers
* k6 board
* 60 pawns (10 each of 6 colors)
** Reversi
* 8x8 grid
* 64 coins (2 colors, one on each side)
** Mancala
* 2x6 grid board
* 36 very small pieces (18 must fit in one grid)
** Royal Game of Ur
* 10x3 grid board
* 7 reversible coins (x2 colors)
* 6d2
** Backgammon
* Backgammon board (12x12 grid might work)
* 2d6 (?)
* 16 pawns (x2 colors)
** Go
* 18x18 grid
* 180 white pawns, 181 black pawns
** Solitaire
*** 6x6 grid (in + shape)
*** 40 pawns
** Fox and Geese
*** Solitaire board
*** 24 white pawns, 1 red pawn
** Nine Mens Morris
*** Unique board
*** 9 pawns (x2 colors)
** Pachisi
*** cross board (3x8 grid arms)
*** 4 pawns (x4 colors)
*** 6d2
** Settlers of Catan
*** 40 hex tiles
**** 6 wood
**** 5 ore
**** 6 sheep
**** 5 brick
**** 5 grain
**** 2 desert
**** 11 trade
**** 18 ocean
*** One pawn (the thief)
*** ?? Towns (?? colors)
*** ?? Roads (?? colors)
*** ?? Cities (?? colors)
*** 2d6
* The Universal Game Set
** Summary of Needed Pieces
* 6d6, at least one a different color
* 6d4
* 6d2
* 64 reversible coins (all 64 of any face must be similar)
* 60 tokens, marbles, or pawns (10 each of 6 colors)
* 36 tokens (6 each of 6 colors)
* 32 chess pieces (16 each of 2 colors)
* 24 tokens (12 each of 2 colors), with some way to "king" them
* 36 small items
* 6 pawns of unique colors
* 16 tokens (4 each of 4 colors)
* 18 tokens (9 each of 2 colors)
* 6 clue weapons
* 21 clue cards
** What pieces will be used
* 6d6, all different colors
* 6d4, all different colors (to be used as pawns in games requiring 6
pawns), each with 2 of 4 corners painted (for 6d2)
* 64 coins:
* 10 each of 6 colors (solid on one face, outline on the other)
* Remaining 4 will be of two colors, for checkers
* 32 with chess peices on both sides (using 4 color sets). These
will double as the checkers (12 each of 2 colors, flip to "king")
* 6 with clue weapons on both sides (using 1 color set -- red!)
* 1 color set with no emblem
* 4 uncolored coins with no emblem
* 2 coins from each of the 4 color sets for chess have no emblem
* 4 coins from the clue color set have no emblem
* 21 clue cards
** Boards
* If printed on paper, boards will be cheap and thin, so there's no
need to go overboard trying to combine them. However:
* Chess, checkers, and Reversi all use an 8x8 grid, it may be
possible to highlight the board for 9 mens morris and Ur
* Pachisi and Clue may be able to use the same grid
* Mancala may present problems, as it really plays better with cups
(egg cartons would be perfect)
** Prices
*** d4
* $0.40 ea. at chessex.com
*** d6
* $0.16 ea. pitted at chessex.com
* $0.40 for arabic numerals at chessex.com
Local variables:
mode: outline
End:

View File

@ -1,6 +0,0 @@
Thanks to:
The PiecePack folks, for inspiring me to do this
Lukas Eklund, for the pacheesi board and tips
Randy Cox <http://www.cox-tv.com/> for the Xiang Qi, Nine Men's Morris
and Hex boards

View File

@ -1,13 +0,0 @@
* Piecepack pieces
* Piecepack pyramids
* UBK Money
* Clue
* Monopoly
* Chinese Checkers
* Reversi
* Mancala (just need an egg carton)
* Royal Game of Ur
* Go (Pente might be more feasable)
* Solitare
* Fox and Geese

View File

@ -1,52 +0,0 @@
%PDF-1.2
%âãÏÓ
4 0 obj
<</Length 5 0 R/Filter /FlateDecode>>
stream
xœM“QN1 DÿsŠœ ²<C2A0>qDû|p}ºN2SUj;;OÓfbËM³\¯õùv¦ï$·^±ü4Kݯ·‡úyO÷$û²¬I>“Ué7Ï^=ÅãQäñížTò€SÕ j•ü¥ Õ¨£Ï<Pf¾)óʬ¤†mª¨2+¨RP×wV5¢ª—MÕaÌ
Á.T6åå`VR­ƒ:³B€j†bf… 5ÐjWaV ÕÞúÌòáK<C3A1>©t5bÓÙiTàÖ<C3A0>†ƒÿFEn!œ”
Ü*d:»7*r³Þpp TàÖeMçºFäÅ ƒ[W?<3F>=!TàÖ …ƒy£"7Ç2L/¸5äÓÙ»@ENÙó^.¶Â’­=íB[ëÛ«Æþ¾¦—ôØÇ]endstream
endobj
5 0 obj
302
endobj
3 0 obj
<<
/Type /Page
/MediaBox [0 0 612 792]
/Parent 2 0 R
/Resources << /ProcSet [/PDF]
>>
/Contents 4 0 R
>>
endobj
2 0 obj
<< /Type /Pages /Kids [
3 0 R
] /Count 1
>>
endobj
1 0 obj
<< /Type /Catalog /Pages 2 0 R
>>
endobj
6 0 obj
<< /CreationDate (D:20020402075613)
/Producer (GNU Ghostscript 5.10)
>>
endobj
xref
0 7
0000000000 65535 f
0000000585 00000 n
0000000526 00000 n
0000000406 00000 n
0000000015 00000 n
0000000387 00000 n
0000000634 00000 n
trailer
<< /Size 7 /Root 1 0 R /Info 6 0 R
>>
startxref
721
%%EOF

View File

@ -1,82 +0,0 @@
%!PS-Adobe-1.0
%% Description: Backgammon board
%% Author: Neale Pickett <neale@woozle.org>
%% URL: http://woozle.org/~neale/src/ubk/
/base 57 def
/-base 0 base sub def
18 18 translate
% Now, scoot the whole thing over to center the page
9 8 translate
/pnt {
currentpoint
newpath
moveto
base 3.75 mul base 2 div rlineto
base -3.75 mul base 2 div rlineto
closepath
} def
/quarter {
currentpoint
gsave
translate
0 2 5 {
0 exch
base mul
moveto
gsave pnt fill grestore
0 base rmoveto
pnt stroke
} for
grestore
} def
% The bar in the middle
gsave
0.75 setgray
newpath
0 base 6 mul moveto
558 0 rlineto
0 base rlineto
-558 0 rlineto
closepath fill
grestore
% Points on the left
gsave
0 0 moveto
quarter
0 base 7 mul moveto
quarter
grestore
% Points on the right
gsave
558 base 13 mul translate
180 rotate
0 0 moveto
quarter
0 base 7 mul moveto
quarter
grestore
% Bounding box
gsave
newpath
0 0 moveto
558 0 rlineto
0 13 base mul rlineto
-558 0 rlineto
closepath
stroke
grestore
showpage

Binary file not shown.

View File

@ -1,439 +0,0 @@
%!PS-Adobe-1.0
%% Description: Chess board
%% Author: Neale Pickett <neale@woozle.org>
%% URL: http://woozle.org/~neale/src/ubk/
/base 69.75 def
/-base 0 base sub def
% Adjust page offset
18 18 translate
% Now, scoot the whole thing over to center the page
9 8 translate
/solid true def
/hollow false def
%
% Queens
%
/queen1 {
/r exch def
/len 150 sin 15 sin div r mul def
gsave
translate
r 0 moveto
0 0 r 0 360 arc closepath
0 setgray
fill
r 0 moveto
0 30 330 {
/angle exch def
/x angle 15 add cos len mul def
/y angle 15 add sin len mul def
angle 15 add cos r mul
angle 15 add sin r mul
moveto
% Overshoot a little to make sure
x y r angle 170 add angle 220 add arc
} for
closepath
1 setgray
fill
r 4 div 0 moveto
0 0 r 4 div 360 0 arcn closepath
stroke
grestore
} def
/queen2 {
/r exch def
/len 150 sin 15 sin div r mul def
gsave
translate
newpath
0 30 330 {
/angle exch def
/x angle 15 add cos len mul def
/y angle 15 add sin len mul def
angle 30 add cos r mul
angle 30 add sin r mul
moveto
x y r angle 180 add angle 210 add arc
} for
0 r moveto
0 setgray
closepath
stroke
r 4 div 0 moveto
0 0 r 4 div 0 360 arc closepath
0 setgray
closepath
stroke
grestore
} def
% I had to go through a couple of iterations before I figured it out.
/queen3 {
/s exch def
/r exch def
/q r 4 div def
/x2 10 cos r mul 0.9 mul def
/y2 10 sin r mul 0.9 mul def
/x3 20 cos r mul 0.9 mul def
/y3 20 sin r mul 0.9 mul def
gsave
currentpoint translate
r 0 moveto
1 1 12 {
pop
x2 y2
x3 y3
30 cos r mul 30 sin r mul
curveto
30 rotate
} for
closepath
s { fill } { stroke } ifelse
r 32 div setlinewidth
s { 1 setgray } { 0 setgray } ifelse
q 0 moveto
0 0 q 0 360 arc
closepath
stroke
grestore
} def
/queen { queen3 } def
% King
/king {
/s exch def
/r exch def
/a .75 r mul def
/a- 0 a sub def
/b .5 r mul def
/b- 0 b sub def
gsave
currentpoint translate
newpath
a 2 div a 2 div moveto
b 0 rlineto
0 a- rlineto
b- 0 rlineto
0 b- rlineto
a- 0 rlineto
0 b rlineto
b- 0 rlineto
0 a rlineto
b 0 rlineto
0 b rlineto
a 0 rlineto
0 b- rlineto
closepath
s { fill } { stroke } ifelse
grestore
} def
/rook {
/s exch def
/r exch def
/q r .75 mul def
gsave
currentpoint translate
/x 15 cos q mul def
/y 15 sin q mul def
1 1 4 {
pop
x y moveto
0 0 r 15 75 arc
0 0 q 75 15 arcn
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/bishop {
/s exch def
/r exch def
/q r 4 div def
/x2 r .15 mul def
/y2 r .53 mul def
/x3 0 x2 sub def
/y3 y2 def
gsave
currentpoint translate
/x 50 cos r mul def
/y 50 sin r mul def
x y moveto
1 1 4 {
pop
x y lineto
x2 y2
x3 y3
130 cos r mul 130 sin r mul
curveto
90 rotate
} for
closepath
s { fill } { stroke } ifelse
r 32 div setlinewidth
s { 1 setgray } { 0 setgray } ifelse
q 0 moveto
0 0 q 0 360 arc
closepath
stroke
grestore
} def
% This knight sucks. But it's hard to draw a horse with radial
% symmetry. Too bad the Indians had more horses than jellyfish.
/knight1 {
/s exch def
/r exch def
gsave
currentpoint translate
1 1 4 {
pop
0 r 8 div moveto
50 cos r mul 50 sin r mul
lineto
0 r 0.6 mul
0 r 0.6 mul
130 cos r mul 130 sin r mul
curveto
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/knight2 {
/s exch def
/r exch def
gsave
currentpoint translate
1 1 4 {
pop
0 r 8 div moveto
50 cos r mul 50 sin r mul
lineto
130 cos r mul 130 sin r mul
lineto
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/knight { knight2 } def
/pawn {
/s exch def
/r exch def
/q r .40 mul def
/p r .65 mul def
gsave
currentpoint translate
q 0 moveto
0 0 q 0 360 arc
closepath
s { fill } { stroke } ifelse
r 8 div setlinewidth
q 0 moveto
0 0 q
0 360 arc
closepath
stroke
grestore
} def
/circle {
/s exch def
/r exch def
/p r 6 div def
gsave
p setlinewidth
currentpoint
r 0 rmoveto
r 0 360 arc
closepath
s { fill } { stroke } ifelse
grestore
} def
/box {
/r exch def
/-r 0 r sub def
currentpoint
gsave
newpath
translate
0 0 moveto
r 0 rlineto
0 r rlineto
-r 0 rlineto
closepath
fill
grestore
} def
gsave
0 91 translate
newpath
0 0 moveto
base 8 mul 0 rlineto
0 base 8 mul rlineto
-base 8 mul 0 rlineto
0 -base 8 mul rlineto
closepath
stroke
0 base 2 mul base 7 mul {
/y exch def
0 base 2 mul base 7 mul {
/x exch def
x y moveto
base box
x base add y base add moveto
base box
} for
} for
grestore
/Times-Roman findfont 12 scalefont setfont
gsave
93 20 moveto
18 hollow king
-12 -30 rmoveto
(King) show
186 20 moveto
18 hollow queen
-15 -30 rmoveto
(Queen) show
279 20 moveto
18 hollow rook
-13 -30 rmoveto
(Rook) show
372 20 moveto
18 hollow bishop
-16 -30 rmoveto
(Bishop) show
465 20 moveto
18 hollow knight
-17 -30 rmoveto
(Knight) show
grestore
gsave
base 8 mul 740 translate
180 rotate
93 20 moveto
18 solid king
-12 -30 rmoveto
(King) show
186 20 moveto
18 solid queen
-15 -30 rmoveto
(Queen) show
279 20 moveto
18 solid rook
-13 -30 rmoveto
(Rook) show
372 20 moveto
18 solid bishop
-16 -30 rmoveto
(Bishop) show
465 20 moveto
18 solid knight
-17 -30 rmoveto
(Knight) show
grestore
showpage

Binary file not shown.

View File

@ -1,135 +0,0 @@
%!PS-Adobe-2.0
%%
%% Hex board
%% for printing on legal-sized paper (8.5" x 14")
%% Copyright 2000 Randy Cox
%% http://www.cox-tv.com/games
%%
%%BeginSetup
%%BeginFeature: *PageSize Legal
<< /PageSize [612 1008] >> setpagedevice
%%EndFeature
%%EndSetup
1 setlinewidth
/inch {72 mul} bind def
%/sidelength 7 16 div inch def
%/hexheight sidelength 1.745 mul def
%/hexwidth sidelength 1.5 mul def
/sidelength 0.455 inch def
/hexheight sidelength 1.735 mul def
/hexwidth sidelength 1.5 mul def
/drawhex
{
newpath
moveto %using the location that is already on the stack
1 1 6 {
sidelength 0 rlineto
60 rotate
} for
closepath
gsave
1.0 setgray
fill
grestore
stroke
} def
/drawboard
{
/xpos 0.6 inch def
/ypos .45 inch def
11{
0 1 10{
xpos exch hexheight mul ypos add drawhex
} for
/temp xpos hexwidth add def
/xpos temp def
/temp ypos hexheight 2 div add def
/ypos temp def
} repeat
} def
% Draw a full, thick red board
gsave
13 setlinewidth
1.0 0.0 0.0 setrgbcolor % set red
drawboard
grestore
% Make a clipping region, then draw a thick yellow board inside of it
gsave % save the old clip path
newpath
0 -0.5 hexheight mul moveto
.6 inch .45 inch lineto
sidelength 2 div hexheight 2 div rlineto
30 rotate
hexheight 10 mul 0 rlineto
-60 rotate
hexheight 0 rlineto
30 rotate
0 hexheight 12 mul rlineto
60 rotate
-1.75 hexheight mul 0 rlineto
-30 rotate
-10 hexheight mul 0 rlineto
30 rotate
0 hexheight rlineto
-60 rotate
closepath
clip
13 setlinewidth
0.0 0.0 1.0 setrgbcolor % set blue color
drawboard
grestore % restore the old clip path
% Draw the black board on top
1 setlinewidth
0.0 setgray
drawboard
% The Text
gsave
1 setlinewidth
0.0 setgray
90 rotate
/Helvetica-Bold findfont 72 scalefont setfont
newpath
.5 inch -7.3 inch moveto
(H) false charpath
gsave
0.7 setgray
fill
grestore
stroke
newpath
1.2 inch -7.3 inch moveto
/Helvetica-Bold findfont 60 scalefont setfont
(EX) false charpath
gsave
0.7 setgray
fill
grestore
stroke
newpath
.5 inch -7.5 inch moveto
2.52 inch 0 inch rlineto
5 setlinewidth
stroke
newpath
/Helvetica-Oblique findfont 17 scalefont setfont
.5 inch -7.8 inch moveto
(www.cox-tv.com/games) show
grestore
showpage

Binary file not shown.

View File

@ -1,135 +0,0 @@
%!PS-Adobe-2.0
%%
%% Hex board
%% for printing on legal-sized paper (8.5" x 14")
%% Copyright 2000 Randy Cox
%% http://www.cox-tv.com/games
%%
%%BeginSetup
%%BeginFeature: *PageSize Legal
<< /PageSize [612 1008] >> setpagedevice
%%EndFeature
%%EndSetup
1 setlinewidth
/inch {72 mul} bind def
%/sidelength 7 16 div inch def
%/hexheight sidelength 1.745 mul def
%/hexwidth sidelength 1.5 mul def
/sidelength 0.455 inch def
/hexheight sidelength 1.735 mul def
/hexwidth sidelength 1.5 mul def
/drawhex
{
newpath
moveto %using the location that is already on the stack
1 1 6 {
sidelength 0 rlineto
60 rotate
} for
closepath
gsave
1.0 setgray
fill
grestore
stroke
} def
/drawboard
{
/xpos 0.6 inch def
/ypos .45 inch def
11{
0 1 10{
xpos exch hexheight mul ypos add drawhex
} for
/temp xpos hexwidth add def
/xpos temp def
/temp ypos hexheight 2 div add def
/ypos temp def
} repeat
} def
% Draw a full, thick red board
gsave
13 setlinewidth
0.3 setgray
drawboard
grestore
% Make a clipping region, then draw a thick yellow board inside of it
gsave % save the old clip path
newpath
0 -0.5 hexheight mul moveto
.6 inch .45 inch lineto
sidelength 2 div hexheight 2 div rlineto
30 rotate
hexheight 10 mul 0 rlineto
-60 rotate
hexheight 0 rlineto
30 rotate
0 hexheight 12 mul rlineto
60 rotate
-1.75 hexheight mul 0 rlineto
-30 rotate
-10 hexheight mul 0 rlineto
30 rotate
0 hexheight rlineto
-60 rotate
closepath
clip
13 setlinewidth
0.7 setgray
drawboard
grestore % restore the old clip path
% Draw the black board on top
1 setlinewidth
0.0 setgray
drawboard
% The Text
gsave
1 setlinewidth
0.0 setgray
90 rotate
/Helvetica-Bold findfont 72 scalefont setfont
newpath
.5 inch -7.3 inch moveto
(H) false charpath
gsave
0.7 setgray
fill
grestore
stroke
newpath
1.2 inch -7.3 inch moveto
/Helvetica-Bold findfont 60 scalefont setfont
(EX) false charpath
gsave
0.7 setgray
fill
grestore
stroke
newpath
.5 inch -7.5 inch moveto
2.52 inch 0 inch rlineto
5 setlinewidth
stroke
newpath
/Helvetica-Oblique findfont 17 scalefont setfont
.5 inch -7.8 inch moveto
(www.cox-tv.com/games) show
grestore
showpage

Binary file not shown.

Binary file not shown.

View File

@ -1,222 +0,0 @@
%!
%% Nine Mens Morris board
%% for printing on letter-sized paper (8.5" x 11")
%% Copyright 2000 Randy Cox
%% http://www.cox-tv.com/games
%%
/I {72 mul} def
/BSZ 6.5 I def % boardsize
/PH 11 I def % pageheight
/PW 8.5 I def % pagewidth
/TM 3 I def % top margin
/BS 1 I def % boardspacing
/VP PH TM sub BSZ sub def % vertical position
/drawboard {
gsave
% Outer box
newpath
1 I VP moveto
6.5 I 0 I rlineto
0 I 6.5 I rlineto
-6.5 I 0 I rlineto
closepath
stroke
% Middle box
newpath
2 I 1 I VP add moveto
4.5 I 0 I rlineto
0 I 4.5 I rlineto
-4.5 I 0 I rlineto
closepath
stroke
% Inner box
newpath
3 I 2 I VP add moveto
2.5 I 0 I rlineto
0 I 2.5 I rlineto
-2.5 I 0 I rlineto
closepath
stroke
% Top line
newpath
PW 2 div VP 6.5 I add moveto
0 I -2 I rlineto
stroke
% Left line
newpath
1 I VP 6.5 I 2 div add moveto
2 I 0 I rlineto
stroke
% Right Line
newpath
1 I 6.5 I add VP 6.5 I 2 div add moveto
-2 I 0 I rlineto
stroke
% Bottom Line
newpath
PW 2 div VP moveto
0 I 2 I rlineto
stroke
grestore
} def
/drawdot {
gsave
newpath
8 0 360 arc %location already on the stack
gsave
0.0 setgray
8 setlinewidth
stroke
grestore
0.7 setgray
fill
grestore
} def
% draw thick, dark board
gsave
6 setlinewidth
0.0 setgray
drawboard
grestore
% draw dots
/CPDD { currentpoint drawdot } def
1 I VP moveto
CPDD
6.5 I 0 I rmoveto
CPDD
0 I 6.5 I rmoveto
CPDD
-6.5 I 0 I rmoveto
CPDD
2 I 1 I VP add moveto
CPDD
4.5 I 0 I rmoveto
CPDD
0 I 4.5 I rmoveto
CPDD
-4.5 I 0 I rmoveto
CPDD
3 I 2 I VP add moveto
CPDD
2.5 I 0 I rmoveto
CPDD
0 I 2.5 I rmoveto
CPDD
-2.5 I 0 I rmoveto
CPDD
PW 2 div VP 6.5 I add moveto
CPDD
0 I -1 I rmoveto
CPDD
0 I -1 I rmoveto
CPDD
1 I VP 6.5 I 2 div add moveto
CPDD
1 I 0 I rmoveto
CPDD
1 I 0 I rmoveto
CPDD
1 I 6.5 I add VP 6.5 I 2 div add moveto
CPDD
-1 I 0 I rmoveto
CPDD
-1 I 0 I rmoveto
CPDD
PW 2 div VP moveto
CPDD
0 I 1 I rmoveto
CPDD
0 I 1 I rmoveto
CPDD
% draw thin, light board
gsave
2 setlinewidth
0.7 setgray
% drawboard
grestore
% Text
/temp VP 0.5 I add def
/VP temp def
/FG {
gsave
0.7 setgray
fill
grestore
stroke
} def
gsave
1 setlinewidth
0.0 setgray
newpath
/Helvetica-Bold findfont 40 scalefont setfont
1 I VP 7.6 I add moveto
(N) false charpath
FG
newpath
/Helvetica-Bold findfont 35 scalefont setfont
1.4 I VP 7.6 I add moveto
(INE ) false charpath
FG
newpath
/Helvetica-Bold findfont 40 scalefont setfont
2.4 I VP 7.6 I add moveto
(M) false charpath
FG
newpath
/Helvetica-Bold findfont 35 scalefont setfont
2.87 I VP 7.6 I add moveto
(ENS ) false charpath
FG
newpath
/Helvetica-Bold findfont 40 scalefont setfont
4 I VP 7.6 I add moveto
(M) false charpath
FG
newpath
/Helvetica-Bold findfont 35 scalefont setfont
4.47 I VP 7.6 I add moveto
(ORRIS) false charpath
FG
newpath
1 I VP 7.49 I add moveto
5 I 0 I rlineto
5 setlinewidth
stroke
grestore
gsave
newpath
/Helvetica-Oblique findfont 17 scalefont setfont
1 I VP 7.2 I add moveto
(www.cox-tv.com/games) show
grestore
showpage

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,139 +0,0 @@
%!PS-Adobe-3.0 EPSF-3.0
%%Title: UBK PiecePack
%%Creator: Neale Pickett
%%CreationDate: Tue Oct 1 21:34:50 2002
%%EndComments
64 dict begin
%/paint { eofill } def
/paint { stroke } def
/fleur {
% fleur de lis
% args: x y size
%% I cheated on this one and drew it with dia, but I subsequently
%% hand-tuned the dia output. Kudos to the dia and gnome-print guys
%% for some ace PS output.
/mag exch def
gsave
translate
mag 13 div dup dup scale
1 exch div setlinewidth
-15 -13 translate
newpath
15 26 moveto
10 23 13 15 14 11 curveto
12 14 10 17 8 17 curveto
0 17 4 8 8 8 curveto
6 16 11 11 14 8 curveto
10 9 10 6 14 7 curveto
14 7 13 5 10 5 curveto
11 3 12 3 13 3 curveto
13 2 14 0 15 0 curveto
16 0 17 2 17 3 curveto
18 3 19 3 20 5 curveto
17 5 16 6 16 7 curveto
20 6 20 9 16 8 curveto
19 11 24 16 22 8 curveto
26 8 30 17 22 17 curveto
20 17 18 14 16 11 curveto
17 15 20 23 15 26 curveto
closepath paint
grestore
} def
/sun {
% Draw a sun.
%
% @arg xcenter
% @arg ycenter
% @arg inner Inner radius
% @arg outer Outer radius
% @arg tines number of tines to draw
/tines exch def
/outer exch def
/inner exch def
/theta 180 tines div def
gsave
translate
newpath
0 outer moveto
1 1 tines {
pop
theta rotate
0 inner lineto
theta rotate
0 outer lineto
} for
inner .8 mul 0 moveto
0 0 inner .8 mul 0 360 arc
closepath paint
grestore
} def
/moon {
% moon
/r exch def
gsave
translate
newpath
0 r moveto
0 0 r 90 270 arc
r -0.6 mul r -0.6 mul
r -0.6 mul r 0.6 mul
0 r curveto
closepath paint
grestore
} def
/crown {
/r exch def
/u r 6 div def
gsave
translate
u u scale
1 u div setlinewidth
-4 -2.5 translate
newpath
0 0 moveto
0 2 lineto
-1 5 lineto
1 2 lineto
2 5 lineto
3 2 lineto
4 5 lineto
5 2 lineto
6 5 lineto
7 2 lineto
9 5 lineto
8 2 lineto
8 0 lineto
0 0 lineto
closepath paint
grestore
} def
50 50 50 fleur
150 50 25 50 8 sun
250 50 50 moon
350 50 50 crown
end
showpage
%%EOF

Binary file not shown.

View File

@ -1,496 +0,0 @@
%!PS-Adobe-1.0
%% Author: Neale Pickett <neale@woozle.org>
%% Description: pieces for the Universal Boardgame Kit
%% URL: http://woozle.org/~neale/src/ubk/
/radius 24 def
% 0 - Color, all pieces are coins
% 1 - B/W, just chess pieces
/piecetype 2 def
% Adjust page offset
50 50 translate
/solid true def
/hollow false def
%
% Queens
%
/queen1 {
/r exch def
/len 150 sin 15 sin div r mul def
gsave
translate
r 0 moveto
0 0 r 0 360 arc closepath
0 setgray
fill
r 0 moveto
0 30 330 {
/angle exch def
/x angle 15 add cos len mul def
/y angle 15 add sin len mul def
angle 15 add cos r mul
angle 15 add sin r mul
moveto
% Overshoot a little to make sure
x y r angle 170 add angle 220 add arc
} for
closepath
1 setgray
fill
r 4 div 0 moveto
0 0 r 4 div 360 0 arcn closepath
stroke
grestore
} def
/queen2 {
/r exch def
/len 150 sin 15 sin div r mul def
gsave
translate
newpath
0 30 330 {
/angle exch def
/x angle 15 add cos len mul def
/y angle 15 add sin len mul def
angle 30 add cos r mul
angle 30 add sin r mul
moveto
x y r angle 180 add angle 210 add arc
} for
0 r moveto
0 setgray
closepath
stroke
r 4 div 0 moveto
0 0 r 4 div 0 360 arc closepath
0 setgray
closepath
stroke
grestore
} def
% I had to go through a couple of iterations before I figured it out.
/queen3 {
/s exch def
/r exch def
/q r 4 div def
/x2 10 cos r mul 0.9 mul def
/y2 10 sin r mul 0.9 mul def
/x3 20 cos r mul 0.9 mul def
/y3 20 sin r mul 0.9 mul def
gsave
currentpoint translate
r 0 moveto
1 1 12 {
pop
x2 y2
x3 y3
30 cos r mul 30 sin r mul
curveto
30 rotate
} for
closepath
s { fill } { stroke } ifelse
r 32 div setlinewidth
s { 1 setgray } { 0 setgray } ifelse
q 0 moveto
0 0 q 0 360 arc
closepath
stroke
grestore
} def
/queen { queen3 } def
% King
/king {
/s exch def
/r exch def
/a .75 r mul def
/a- 0 a sub def
/b .5 r mul def
/b- 0 b sub def
gsave
currentpoint translate
newpath
a 2 div a 2 div moveto
b 0 rlineto
0 a- rlineto
b- 0 rlineto
0 b- rlineto
a- 0 rlineto
0 b rlineto
b- 0 rlineto
0 a rlineto
b 0 rlineto
0 b rlineto
a 0 rlineto
0 b- rlineto
closepath
s { fill } { stroke } ifelse
grestore
} def
/rook {
/s exch def
/r exch def
/q r .75 mul def
gsave
currentpoint translate
/x 15 cos q mul def
/y 15 sin q mul def
1 1 4 {
pop
x y moveto
0 0 r 15 75 arc
0 0 q 75 15 arcn
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/bishop {
/s exch def
/r exch def
/q r 4 div def
/x2 r .15 mul def
/y2 r .53 mul def
/x3 0 x2 sub def
/y3 y2 def
gsave
currentpoint translate
/x 50 cos r mul def
/y 50 sin r mul def
x y moveto
1 1 4 {
pop
x y lineto
x2 y2
x3 y3
130 cos r mul 130 sin r mul
curveto
90 rotate
} for
closepath
s { fill } { stroke } ifelse
r 32 div setlinewidth
s { 1 setgray } { 0 setgray } ifelse
q 0 moveto
0 0 q 0 360 arc
closepath
stroke
grestore
} def
% This knight sucks. But it's hard to draw a horse with radial
% symmetry. Too bad the Indians had more horses than jellyfish.
/knight1 {
/s exch def
/r exch def
gsave
currentpoint translate
1 1 4 {
pop
0 r 8 div moveto
50 cos r mul 50 sin r mul
lineto
0 r 0.6 mul
0 r 0.6 mul
130 cos r mul 130 sin r mul
curveto
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/knight2 {
/s exch def
/r exch def
gsave
currentpoint translate
1 1 4 {
pop
0 r 8 div moveto
50 cos r mul 50 sin r mul
lineto
130 cos r mul 130 sin r mul
lineto
closepath
s { fill } { stroke } ifelse
90 rotate
} for
grestore
} def
/knight { knight2 } def
/pawn {
/s exch def
/r exch def
/q r .40 mul def
/p r .65 mul def
gsave
currentpoint translate
q 0 moveto
0 0 q 0 360 arc
closepath
s { fill } { stroke } ifelse
r 8 div setlinewidth
q 0 moveto
0 0 q
0 360 arc
closepath
stroke
grestore
} def
/circle {
/s exch def
/r exch def
/p r 6 div def
gsave
p setlinewidth
currentpoint
r 0 rmoveto
r 0 360 arc
closepath
s { fill } { stroke } ifelse
grestore
} def
/pradius radius .75 mul def
/len radius 2.7 mul def
piecetype 0 eq {
gsave
1 1 6 {
/i exch def
/c i 1 and def
/m i 2 and 2 div def
/y i 4 and 4 div def
c m y 0.5 setcmykcolor
gsave
1 1 2 {
pop
50 50 moveto
radius hollow circle
pradius solid king
100 0 rmoveto
radius hollow circle
pradius solid queen
100 0 rmoveto
radius hollow circle
pradius solid rook
100 0 rmoveto
radius hollow circle
pradius solid bishop
100 0 rmoveto
radius hollow circle
pradius solid knight
100 0 rmoveto
radius hollow circle
pradius solid pawn
0 100 translate
} for
50 50 moveto
1 1 6 {
pop
radius hollow circle
pradius solid pawn
100 0 rmoveto
} for
0 100 translate
grestore
showpage
} for
grestore
} if
piecetype 1 eq {
gsave
1 1 2 {
pop
1 1 2 {
1 eq {
/filltype hollow def
} {
/filltype solid def
} ifelse
1 1 2 {
pop
radius radius moveto
radius hollow circle
pradius filltype king
len 0 rmoveto
radius hollow circle
pradius filltype queen
len 0 rmoveto
radius hollow circle
pradius filltype rook
len 0 rmoveto
radius hollow circle
pradius filltype bishop
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype pawn
0 len translate
} for
} for
} for
grestore
} if
piecetype 2 eq {
gsave
1 1 2 {
pop
1 1 2 {
2 mod 1 eq {
/filltype hollow def
} {
/filltype solid def
} ifelse
1 1 1 {
pop
radius radius moveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
len 0 rmoveto
radius hollow circle
pradius filltype knight
0 len translate
} for
} for
} for
grestore
} if
showpage

Binary file not shown.

View File

@ -1,174 +0,0 @@
%!PS-Adobe-1.0
%%
%% Xiang Qi board
%% for printing on legal-sized paper (8.5" x 14")
%% Copyright 2000 Randy Cox
%% http://www.cox-tv.com/games
%%
%%BeginSetup
%%BeginFeature: *PageSize Legal
<< /PageSize [612 1008] >> setpagedevice
%%EndFeature
%%EndSetup
3 setlinewidth
0.0 setgray
/I {72 mul} bind def % translate from inches to PostScript units
/PH 14 I def % Page Height
/PW 8.5 I def % Page Width
/BSP {1.5 I mul} bind def % Board Spacing
/VHP PH 2 div def % Vertical Half-Page
/RM 1 BSP 2 div def % Right Margin
/drawlocator {
4 {
-0.3 BSP .05 BSP rmoveto
0.25 BSP 0 rlineto
0 0.25 BSP rlineto
.05 BSP -0.3 BSP rmoveto
90 rotate
} repeat
} def
gsave % save the default clipping region
% Create clipping region for board (so edge locators are correct)
newpath
PW RM sub 4 BSP sub 3 sub VHP 4 BSP add 3 add moveto
5 BSP 0 rlineto
0 -8 BSP 6 sub rlineto
-5 BSP 0 rlineto
closepath
clip
% the board
% Draw Outline
newpath
PW RM sub VHP 4 BSP add moveto
-4 BSP 0 rlineto
0 -8 BSP rlineto
4 BSP 0 rlineto
closepath
stroke
newpath
% Draw horizontal lines
PW RM sub 4 BSP sub VHP 3 BSP add moveto
7{
4 BSP 0 rlineto
-4 BSP -1 BSP rmoveto
} repeat
% Draw vertical lines
PW RM sub 3 BSP sub VHP 4 BSP add moveto
3{
0 -8 BSP rlineto
1 BSP 8 BSP rmoveto
} repeat
% Draw palace
PW RM sub 4 BSP sub VHP 1 BSP add moveto
2 BSP -2 BSP rlineto
-2 BSP 0 rmoveto
2 BSP 2 BSP rlineto
stroke
% Draw locators
PW RM sub 1 BSP sub VHP 4 BSP add moveto
5{
drawlocator
0 -2 BSP rmoveto
} repeat
PW RM sub 2 BSP sub VHP 3 BSP add moveto
drawlocator
0 -6 BSP rmoveto
drawlocator
0.3 setgray
stroke
grestore % restore the default clipping region
% Draw decorative border
newpath % inner decorations
PW RM sub 1 BSP add 1 add VHP 4 BSP add 9 add moveto
-5 BSP 1 sub 9 sub 0 rlineto
0 -8 BSP 18 sub rlineto
5 BSP 18 add 0 rlineto
gsave
0.0 setgray
11 setlinewidth stroke
grestore
gsave
1.0 setgray
9 setlinewidth stroke
grestore
gsave
0.3 setgray
[3 7] 1 setdash
3 setlinewidth stroke
grestore
gsave
0.6 setgray
[1 9] 5 setdash
9 setlinewidth stroke
grestore
% Text
/FG {
gsave
0.7 setgray
fill
grestore
1 setlinewidth stroke
} def
gsave
newpath
0.5 I VHP 4 BSP add 13 add moveto
-90 rotate
/Helvetica-Bold findfont 60 scalefont setfont
(X) false charpath FG
grestore
gsave
newpath
0.5 I VHP 4 BSP add 28 sub moveto
-90 rotate
/Helvetica-Bold findfont 55 scalefont setfont
(IANG) false charpath FG
grestore
gsave
newpath
0.5 I VHP 4 BSP add 180 sub moveto
-90 rotate
/Helvetica-Bold findfont 60 scalefont setfont
(Q) false charpath FG
grestore
gsave
newpath
0.5 I VHP 4 BSP add 227 sub moveto
-90 rotate
/Helvetica-Bold findfont 55 scalefont setfont
(I) false charpath FG
grestore
gsave
newpath
0.5 I VHP 267 sub moveto
-90 rotate
/Helvetica-Oblique findfont 17 scalefont setfont
(www.cox-tv.com/games) show
grestore
showpage

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

View File

@ -1,16 +0,0 @@
#! /bin/sh
GIT_DIR=$HOME/projects/ubk; export GIT_DIR
echo "<ul>"
git ls-tree HEAD | while read mode type sum fn; do
case $fn in
*.ps)
base=${fn%.ps}
desc=$(git cat-file blob $sum | sed -n 's/^%.*Description: //p')
[ -z "$desc" ] && desc="$base"
echo "<li><a href="$base.pdf">${desc:-$base}</a></li>"
;;
esac
done
echo "</ul>"

View File

@ -1,13 +0,0 @@
PLAIN += src/ubk
TARGETS += $(DESTDIR)/src/ubk/mine-sm.jpg $(DESTDIR)/src/ubk/mine.jpg
UBK_GIT_DIR = $(HOME)/projects/ubk
UBK_PS = $(shell git --git-dir=$(UBK_GIT_DIR) ls-tree HEAD | awk '/ps$$/{print $$4;}')
UBK_PDF = $(patsubst %.ps,$(DESTDIR)/src/ubk/%.pdf,$(UBK_PS))
TARGETS += $(UBK_PDF)
$(DESTDIR)/src/ubk/%.pdf: $(UBK_GIT_DIR)/refs/heads/master
git --git-dir=$(UBK_GIT_DIR) show HEAD:$*.ps | ps2pdf - $@
$(DESTDIR)/src/ubk/index.html: $(UBK_GIT_DIR)/refs/heads/master