| 1 | package Games::Sudoku::Component::TkPlayer; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | our $VERSION = '0.02'; | ||
| 7 | |||
| 8 | 0 | ▶ | use Tk; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 9 | use Games::Sudoku::Component::TkPlayer::View; | ||
| 10 | use Games::Sudoku::Component::TkPlayer::Controller; | ||
| 11 | use Games::Sudoku::Component::Controller; | ||
| 12 | |||
| 13 | sub bootstrap { | ||
| 14 | my $self = shift; | ||
| 15 | |||
| 16 | my $view = Games::Sudoku::Component::TkPlayer::View->new( | ||
| 17 | mw => MainWindow->new, | ||
| 18 | sdk => Games::Sudoku::Component::Controller->new, | ||
| 19 | cmd => Games::Sudoku::Component::TkPlayer::Controller->new, | ||
| 20 | ver => $VERSION, | ||
| 21 | ); | ||
| 22 | |||
| 23 | $view->create; | ||
| 24 | |||
| 25 | MainLoop; | ||
| 26 | |||
| 27 | print "Thank you for playing!\n"; | ||
| 28 | } | ||
| 29 | |||
| 30 | 1; | ||
| 31 | |||
| 32 | __END__ | ||