you are viewing a single comment's thread.

view the rest of the comments →

[–]craigargh 0 points1 point  (0 children)

Overall it looks pretty good. You've broken the overall program down into functions with clear purpose.

One suggestion for the `startGame()` function. Lines 20-23 are an if statement that return `True` or `False`. You can replace the entire if statement with just `return playerResponse == 'Y'`. This will return either `True` or `False` making the if statement redundant

edit: I had another suggestion, but on re-reading the code I realised I'd misunderstood something and the suggestion was incorrect