#
# Copyright (C) 1996-2001, Thomas Andrews
#
# $Id: simpleokb 255 2008-09-15 12:43:02Z thomasoa $
#
# 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
#
stringbox okbox 14 70
okbox write 4 15 "West"
okbox write 4 50 "East"
okbox write 0 30 "North"
okbox write 10 30 "South"

okbox subbox okbox.north 0 36 4 15
okbox subbox okbox.south 10 36 4 15
okbox subbox okbox.east 5 50 4 15
okbox subbox okbox.west 5 15 4 15

proc write_deal {} {
    foreach hand {west south north east} {
	okputhand $hand
    }
    puts "[okbox]"
    puts "                       -----------------------------"
}

proc okputhand {hand} {
    okbox.$hand clear
    set rowhand 0
    foreach char {S H D C} suit {spades hearts diamonds clubs} {
	okbox.$hand write $rowhand 0 "$char [$hand -void --- $suit]"
	incr rowhand
    }
}

