REBOL [
    title: "Jeopardy"
    date: 3-oct-2009
    file: %jeopardy.r
    purpose: {
        A GUI game reminiscent of the popular TV show.  Click on the header image
        to create and save config files which contain questions and answers to
        separate games.  Change the "sizer" variable to resize the entire layout to
        fit different screens.
        Taken from the tutorial at http://musiclessonz.com/rebol.html
    }
] 

config: {

    REBOL []

	;________________________________________________________________
	
	sizer: 4
	
	Category-1: "Category 1" 
	Category-2: "Category 2" 
	Category-3: "Category 3" 
	Category-4: "Category 4" 
	Category-5: "Category 5"
	
	answers: [
	    "$100 Answer, Category 1" 
	    "$100 Answer, Category 2" 
	    "$100 Answer, Category 3" 
	    "$100 Answer, Category 4" 
	    "$100 Answer, Category 5" 
	    "$200 Answer, Category 1" 
	    "$200 Answer, Category 2" 
	    "$200 Answer, Category 3" 
	    "$200 Answer, Category 4" 
	    "$200 Answer, Category 5" 
	    "$300 Answer, Category 1" 
	    "$300 Answer, Category 2" 
	    "$300 Answer, Category 3" 
	    "$300 Answer, Category 4" 
	    "$300 Answer, Category 5" 
	    "$400 Answer, Category 1" 
	    "$400 Answer, Category 2" 
	    "$400 Answer, Category 3" 
	    "$400 Answer, Category 4" 
	    "$400 Answer, Category 5" 
	    "$500 Answer, Category 1" 
	    "$500 Answer, Category 2" 
	    "$500 Answer, Category 3" 
	    "$500 Answer, Category 4" 
	    "$500 Answer, Category 5" 
	]
	questions: [
	    "$100 Question, Category 1" 
	    "$100 Question, Category 2" 
	    "$100 Question, Category 3" 
	    "$100 Question, Category 4" 
	    "$100 Question, Category 5" 
	    "$200 Question, Category 1" 
	    "$200 Question, Category 2" 
	    "$200 Question, Category 3" 
	    "$200 Question, Category 4" 
	    "$200 Question, Category 5" 
	    "$300 Question, Category 1" 
	    "$300 Question, Category 2" 
	    "$300 Question, Category 3" 
	    "$300 Question, Category 4" 
	    "$300 Question, Category 5" 
	    "$400 Question, Category 1" 
	    "$400 Question, Category 2" 
	    "$400 Question, Category 3" 
	    "$400 Question, Category 4" 
	    "$400 Question, Category 5" 
	    "$500 Question, Category 1" 
	    "$500 Question, Category 2" 
	    "$500 Question, Category 3" 
	    "$500 Question, Category 4" 
	    "$500 Question, Category 5" 
	]
	
	;________________________________________________________________
	
}

do config

header: load to-binary decompress 64#{
eJyVd2VMHAyw7eIs7locCou7O0UWd5fiujh8uENxKGVxh8WKy+JSrHiLFqe4O8Up
tzcveXl/35k/k5zJSDKZnHlbevsNwFNWACsAEBAQAEr/DPC2CpADoCKjoKIgo6Ki
oKKhoaJj4GFgAIEYRDi4WHikRGRkpEQkJBRUTDQUlAzvSEho2WkZ3jODWEHkNBzc
HCzcTCwglv9NgoCGhoaBjkGIgUHIQkFCwfL/jbd+AD46wBSBHgmBHoCIj4CEj/A2
BHgHACAiIv3r9v8CFQ0FHYCIjPS/rDYeAOGfi4KEgokGREX7xyIgIgGQUfBRCejQ
0Al5ZOi1LIl4ZT2aiBm0rTzDPxc3fpshIWV8zxdxySQgKKdj7ZU2y8wvpPtlS97G
O7Jk4OpfTgoEwL96/29FJGQURARUwD+OHf9fN4gISP+A8n8CEBD/0fgEKHQ8hEQy
jFoe9PyWxAy8fOGXbysALCSEf4Mg4QOkANTpTh/BMd8snUbl086d71p2reEhCv6T
7FdymEL5HUDUu4m7UNKwJH5yGap12gwDrl2G7yyMGswq3mPU00Pe7va5VeFntAt0
grn7mX5+RJ5JWC39Uk1eKo7p10/0MnfZ2mAWjanaFmrum/W7QmYhucpH3a9cgG0X
U2mD0pt+z6fw7xS2NwL63B0tWOD5JQ9eXptiR3oz0ZeDCuHtz4yHZc7ugH31gnZf
N1ImNvWK2e4Is2w94dZojvRdwYbzcEj0Fv92fN7kutZjJmPZdTIuub7x1ClOd5FK
fjVK5xnQVbAG2E6q4UK+7DUvvEkryvYLn/CbrKe1vEVsXcF7TocBIkzc3Q4zEV9k
P5Fw97l4Jm9/bY2hML1FLSCTNVpFG5WrjhgBhxWW6lbXJSsJ8vPPnwFbv+DdPPIl
lkfgeJsE3rpqGzpl6X0M9ULN8NeYrQwepL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tFjYN1LWQ0ZNnaQ/xr1e75clUIRLXgVPzchTCwEhwZg67GwOalObNyFvQEc
dlf1OQcNSzGEmNWr4KcDFpgNsp/sRl76L2PXN3mI2XDnWGUbRdca/Xdjxi9sDalL
LutVPL/n5UopdwdZyQMdtLK1jZSDHw6J6iNPwiSpHHpzvmzge+YveVIzFaj/5G5K
hnaIvbTfCt9gIkMpzsQNLe76yaodgFoadoPQZrarpKGoLjgb+P0m+kP/KqwI+TpH
pCxINv83PDFPkYftw2DTuQj7wEPylHBaVOWqdKrPHsaiDhSIvC84/23dOIH1dlQ7
ISyK0aEePUUPVZeDluMshPuFvg5RL7kLqSNhz/QORwrv138UUVDJPl2+Oe3r5SUl
DWJLkVZRzOEotZDkUhs9Rt0gavDzdoX2EcGpbhbIpCz3huEyWaTj/UMYlD2Nq4rq
b2X+5xheLusetW2Lo4VtkbaIFQlWaIyBYlq2q2exsDSLzcFWEWUaBDYGQDiJCnkX
/Fhts1NfQaftilcX+fBXNOkdFAKc0w5IBT7Ty6b9JCCs7hD18yvsRM1CjMFSfx54
3l7RpJ3oXAOIjMDFp1ovUhRTCZqtrPVHXENHPh91RDTJ999YC5DQ7zqT08jXjvMy
klBmXUi9Lf8PNy+uUY8gAAA=
}

do-button: func [num] [
    alert pick answers num 
    alert pick questions num
    if find [1 2 3 4 5] num [val: $100]
    if find [6 7 8 9 10] num [val: $200]
    if find [11 12 13 14 15] num [val: $300]
    if find [16 17 18 19 20] num [val: $400]
    if find [21 22 23 24 25] num [val: $500]
    correct: request-list "Select:" ["Player 1 answered correctly" 
        "Player 1 answered incorrectly" "Player 2 answered correctly"
        "Player 2 answered incorrectly" "Player 3 answered correctly"
        "Player 3 answered incorrectly" "Player 4 answered correctly"
        "Player 4 answered incorrectly"
    ] 
    switch correct  [
        "Player 1 answered correctly" [
            player1/text: to-string ((to-money player1/text) + val)
            show player1
        ] 
        "Player 1 answered incorrectly" [
            player1/text: to-string ((to-money player1/text) - val)
            show player1
        ] 
        "Player 2 answered correctly" [
            player2/text: to-string ((to-money player2/text) + val)
            show player2
        ]
        "Player 2 answered incorrectly"[
            player2/text: to-string ((to-money player2/text) - val)
            show player2
        ]
        "Player 3 answered correctly" [
            player3/text: to-string ((to-money player3/text) + val)
            show player3
        ] 
        "Player 3 answered incorrectly" [
            player3/text: to-string ((to-money player3/text) - val)
            show player3
        ] 
        "Player 4 answered incorrectly"[
            player4/text: to-string ((to-money player4/text) - val)
            show player4
        ]
        "Player 4 answered correctly" [
            player4/text: to-string ((to-money player4/text) + val)
            show player4
        ]
    ]
]

view center-face layout gui: [
    tabs (sizer * 20)
    backdrop effect [gradient 1x1 tan brown]
    style button button effect [gradient blue blue/2] (
        to-pair rejoin [(20 * sizer) "x" (13 * sizer)]
    ) font [size: (sizer * 6)]
    style box box brown (to-pair rejoin [(20 * sizer) "x" (7 * sizer
        )]) font [size: (sizer * 3)]
    image header (to-pair rejoin [(132 * sizer) "x" (8 * sizer)]) [
        contin: request/confirm {
            This will end the current game.  Continue?}
        if contin = false [break]
        loadoredit:  request/confirm "Load previously edited config file?"
        if loadoredit = true [
            do to-file request-file/title/file {
                Choose config file to use:} "File" %default_config.txt
            unview
            view center-face layout gui
            break
        ]
        alert {Edit carefully, maintaining all quotation marks.  
            You can open a previously saved file if needed.
            When done, click SAVE-AS and then QUIT.  
            Be sure choose a filename/folder
            location that you'll be able to find later.
        }
        write %default_config.txt config
        unview
        editor %default_config.txt
        alert {Now choose a config file to use (most likely the file
            you just edited).}
        do to-file request-file/title/file {
            Choose config file to use:} "File" %default_config.txt
        view center-face layout gui
    ]
    space (to-pair rejoin [(8 * sizer) "x" (2 * sizer)])
    pad (sizer * 2)
    across
    box (to-pair rejoin [(132 * sizer) "x" (2 * sizer)]
        ) effect [gradient 1x0 brown black] 
    return
    box Category-1 
    box Category-2 
    box Category-3 
    box Category-4 
    box Category-5
    return
    box (to-pair rejoin [(132 * sizer) "x" (2 * sizer)]
        ) effect [gradient 1x0 brown black] 
	return
    button "$100" [face/feel: none face/text: "" do-button 1]
    button "$100" [face/feel: none face/text: "" do-button 2]
    button "$100" [face/feel: none face/text: "" do-button 3]
    button "$100" [face/feel: none face/text: "" do-button 4]
    button "$100" [face/feel: none face/text: "" do-button 5]
    return
    button "$200" [face/feel: none face/text: "" do-button 6]
    button "$200" [face/feel: none face/text: "" do-button 7]
    button "$200" [face/feel: none face/text: "" do-button 8]
    button "$200" [face/feel: none face/text: "" do-button 9]
    button "$200" [face/feel: none face/text: "" do-button 10]
    return
    button "$300" [face/feel: none face/text: "" do-button 11]
    button "$300" [face/feel: none face/text: "" do-button 12]
    button "$300" [face/feel: none face/text: "" do-button 13]
    button "$300" [face/feel: none face/text: "" do-button 14]
    button "$300" [face/feel: none face/text: "" do-button 15]
    return
    button "$400" [face/feel: none face/text: "" do-button 16]
    button "$400" [face/feel: none face/text: "" do-button 17]
    button "$400" [face/feel: none face/text: "" do-button 18]
    button "$400" [face/feel: none face/text: "" do-button 19]
    button "$400" [face/feel: none face/text: "" do-button 20]
    return
    button "$500" [face/feel: none face/text: "" do-button 21]
    button "$500" [face/feel: none face/text: "" do-button 22]
    button "$500" [face/feel: none face/text: "" do-button 23]
    button "$500" [face/feel: none face/text: "" do-button 24]
    button "$500" [face/feel: none face/text: "" do-button 25]
    return 
    box (to-pair rejoin [(132 * sizer) "x" (2 * sizer)]
        ) effect [gradient 1x0 brown black] 
    return tab
    box "Player 1:" effect [gradient 1x1 tan brown]
    player1: box white "$0" font [color: black size: (sizer * 4)] [
        face/text: request-text/title/default "Enter Score:" face/text
    ]
    box "Player 2:" effect [gradient 1x1 tan brown]
    player2: box white "$0" font [color: black size: (sizer * 4)] [
        face/text: request-text/title/default "Enter Score:" face/text
    ]
    return tab
    box "Player 3:" effect [gradient 1x1 tan brown]
    player3: box white "$0" font [color: black size: (sizer * 4)] [
        face/text: request-text/title/default "Enter Score:" face/text
    ]
    box "Player 4:" effect [gradient 1x1 tan brown]
    player4: box white "$0" font [color: black size: (sizer * 4)] [
        face/text: request-text/title/default "Enter Score:" face/text
    ]
]