CIS200 Assignments


Assignment 1, due 2 February

Assignment 2, due 9 February

Assignment 3, due 16 February

Assignment 4, due 8 March

Assignment 5, due 29 March

PenteBoard.py
Pente.py
ComputerPlayer.py
Or, you can download all three files in one zipped folder, here: Assign5.zip (Do this if your browser does not want to download the files individually.)

Assignment 6, due 5 April

PenteBoard.py
ComputerPlayer.py
Or, you can download the two files in one zipped folder, here: Assign6.zip

Here is a sample solution to the assignment. Note how the GUI module calls PenteBoard.makeMove to do the hard work of inserting Xs and Os and computing captures. The GUI calls PenteBoard.contents when the GUI needs to know the marks to paint on the GUI's buttons.

Assignment 7, now due 27 April

Assignment 8, due May 8

The two classes required for the assignment: Board.cs, the part you finish | Life.cs, the controller, already completed
a zipped folder, holding the two files
Please submit your solution to Assignment 8 here.

Sample solutions to Lab Exercises

Week 1: Fahrenheit to Celsius converter: FtoC.py
Week 2: Double-your-money game: DealNoDeal.py
Week 3: Reversing and printing the letters of a word: Reverse2.py
Week 4: Loop invariants
Example 1: What is the invariant? week4a.py
Example 2: What is the loop body? week4b.py
Week 5: Two-player tic-tac-toe: TTT.py
Week 6: Tic-tac-toe using a grid and functions:
The file (module) that holds the game board: TTTboard.py
A sample solution for the game board: TTTboardSoln.py
The file (module) that holds the controller for playing the game: TTT2.py

Week 7: File-reading module:
Because of my unplanned absence, we didn't do the scheduled lab for this week. )-:

You are most welcome to work the lab on your own. It's not required, but it provides some useful material about reading text files. It's meant to build on material in Chapter 7 of Dawson's text and the Lecture Notes, Chapter 7.
Here's the lab sheet for this week's lab. Read it and follow along with your computer. To finish the exercise, use these two files:

The module that holds functions for reading words from a file: Words.py
A test program for the module: TestWords.py
If you get stuck, here is a sample solution: WordSoln.py. Thanks for trying!
Week 8: Counter GUI: CounterGUI.py
Week 9: GUI for a board with an X that jumps: ViewSoln.py
Week 10: a Tic-tac-toe board written in C#: TTT.cs
Week 11: a Tic-tac-toe board that uses object markers: TTTob.cs


Creative Commons License This work is licensed under a Creative Commons License.