Copyright (c) 1995-2003 by Alessandro Scotti
Yawn is a game of dice I wrote as a demo for my TDice component (see source files). I also tried a little experiment
with it, creating a very tight coupling between the program state and its user interface. (This is of course a
bad thing in programming, but that alone is not a good enough reason for never trying!)
Rules of the game
A game of Yawn is divided into 13 rounds.
During each round you are allowed to roll the dice up to three times [click on the Roll button], and after each roll you may choose to hold the value of some dice [click on selected dice to toggle "Hold" sign]: the dice that are hold will not be influenced by subsequent rolls.
When you are satisfied with the dice values or you have used all roll attempts, you have to choose a score cell and put a score into it. To help you, the program will show the score for each valid cell after each roll. Each score cell has a different rule to compute the score that can be written to it:
There is a special bonus for the first six score cells (those from "Aces" to "Six"). If the sum of all these cell is at least 63, then a 35 points bonus is added to the final score. (This value comes from putting at least three valid dices into each of these cells, so 63=6*3+5*3+4*3+3*3+2*3+1*3=18+15+12+9+6+3.
Notes
Yawn is a game where sheer luck is important but a good strategy can help getting a better score too.
The "Boss" button will instantly minimize the game window and change its icon into that of calculator. In the original version (for Win3.1) it was added to the program as a test for some less known API. Since I like the effect, during the years I have tried to keep the function updated. Note that this is for fun only, and isn't mean as a tool to hide the program from your real boss!
License and disclaimer
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