By Andy Brown
Download files and exercises for this tutorial from www.wiseowl.co.uk/python/vide...
Learning the theory of classes is one thing; putting them into practice quite another. This tutorial shows how you can use classes to write a game of hangman, explaining the design decisions taken along the way.
Chapters
00:00 Topic list
02:00 The hangman game demonstrated
04:21 Setting the scene
07:25 Enumerations
09:19 Writing your algorithm (pseudo-code)
12:42 Designing your classes
17:58 Starting the game
21:04 Validating guesses
26:46 Marking guesses
30:07 Showing progress messages
36:01 Testing for the game end
40:08 Testing the final program
Python playlist • Programming in Python
If you'd like to help fund Wise Owl's conversion of tea and biscuits into quality training videos you can join this channel to get access to perks:
/ @wiseowltutorials
Or you can click this link www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching!
Visit www.wiseowl.co.uk for more online training resources in Microsoft Excel, Microsoft Power BI, DAX, VBA, Python, Visual C#, Microsoft SQL Server, SQL Server Reporting Services SSRS, SQL Server Integration Services SSIS, Microsoft Access and more!
5 авг 2024