Code covered by the BSD License  

Highlights from
Cribbage Suite

image thumbnail
from Cribbage Suite by Bryan
Cribbage Suite is a GUI interface designed to help teach and play the game of cribbage.

cribbagegui.m
%cribbagegui.m 
%This is the "home" GUI for CribbageSuite.


Cfig = figure; %Open a new figure.

set(Cfig,'Menubar','none',...
    'NumberTitle','off',...
    'Name','Cribbage Suite 1.0',...
    'Position',[5 530 400 400],...
    'Color','b');

    
%% INITIAL DISPLAY
CtitleText = uicontrol(...
    'Style','text',...
    'String', 'CRIBBAGE SUITE 1.0',...
    'Position', [5 350 390 40],...
    'FontUnits','points',...
    'FontSize',20,...
    'FontWeight','bold',...
    'BackgroundColor','blue',...
    'ForegroundColor','yellow');

CviewRecordsButton = uicontrol(...
    'Style','pushbutton',...
    'Position',[100 150 200 20],...
    'String','View Player Record',...
    'Callback','viewRecord',...
    'BackgroundColor','blue');

CnewGameButton = uicontrol(...
    'Style','pushbutton',...
    'Position',[100 100 200 20],...
    'String','Start A New Game',...
    'Callback','cribScoreBoard',...
    'BackgroundColor','blue');

ChelpButton = uicontrol(...
    'Style','pushbutton',...
    'Position',[100 50 200 20],...
    'String','Help',...
    'Callback','cribHelpGui',...
    'BackgroundColor','blue');

Contact us at files@mathworks.com