| School of Physics |
|
| Physics Home | Study here | Our Teaching | Our Research | Our Centres | News | Work here | EMPS |
Back to top
PHY3134 Exercise 2This is an assessed exercise and should be handed in next week for quick feedback. It will be returned the following week. The primary aim of this exercise is for you to use a structure in a familiar context. The second is to reinforce the idea of using functions for self-contained tasks and that such functions may call other functions. As always we want you to build up your program a bit at a time, moving on to the next piece only when you are sure that what you have already written is OK. The task is to put a user-friendly wrapper around a game of Connect Four. What you should have from last week
The reason for not requiring or assessing a "win" function is to avoid
giving an unfair advantage to anybody who wrote a Connect Four
program for their PHY2004 project.
From last week we expect you to have a working game that allows two people to play Connect Four. You do not need to have the "win" function. We will ask in class if anybody does not have a win function and will provide one for anybody who needs one. This means that your "win" function will not count as part of the assessment. All of the rest of your program will. However your game should do the basics of allowing people to play moves, and checking for invalid input, full columns etc. This week
Hand in
I propose that work should be handed in in hard-copy, paper, form rather than WebCT. When things go wrongIf you've gone 15 minutes without making progress (outside of lab time) ask me for help, either in person or by email. Always show me the complete, latest code. |