[Tutor] Help

Brett Dailey bardockarngrim at hotmail.com
Fri Sep 21 00:31:14 CEST 2012

I'm having trouble with a small project. Here's what it needs to do:

Has variables for window width and window height and creates a window of that size. 
Has variables which control the number of columns and number of rows. 
From this, create a checkboard pattern which evenly fills the window. On approximately 10% of the squares (chosen at random) draw an image which is sized to just fit inside a checkboard square (use the smallest dimension). 
Keep the program open for 3 seconds and then quit.

I've attached the code I have so far.
"Pic" is just a place holder for an actual image.
Not sure what to do with the while statements that are empty in the code.

Thanks for the help,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120920/715adc43/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: game_board.py
Type: text/x-python-script
Size: 676 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20120920/715adc43/attachment-0001.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120920/715adc43/attachment-0003.html>

More information about the Tutor mailing list