txt, 2.72 KB
txt, 2.72 KB

a text file which contains the python code for a X’s and O’s game

Get this resource as part of a bundle and save up to 50%

A bundle is a package of resources grouped together to teach a particular topic, or a series of lessons, in one place.

Review

4

Something went wrong, please try again later.

elder_cat

6 years ago
4

After saving with a .py extension, the script ran fine in Thonny with no problems. I think the way you use it would depend on the level of ability of the students you're working with. Younger students could simply play the game without any problem. If that's how you intend to use it, then you won't need to do anything to it. If you intend to use the script with older students, with more of a working knowledge of Python, the script demonstrates a number of different things - Functions, While loops, randomisation, the use of comparison operators, inserting values into Lists, and catching Exceptions. I am sure many users would be more than happy with using the script as it stands. But from a purely personal perspective, there are a couple of ways I think this could be even better: 1. I think it would benefit from being fully commented. I am not sure I would want to use it, in its present form, as an exemplar to a group of mixed ability students. That means I have to spend time adding all the necessary comments myself, to explain which bit does what. 2. Whenever I played Noughts and Crosses as a child, we always used a grid to place the Os and Xs, so I found it a little odd, having the Os or Xs placed in amongst a set of numbers: XO3 45O OX9 I'd find it easier to visualise the state of play if they were displayed in a simple grid.

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.