By Andy Brown
Download files and exercises for this tutorial from https://www.wiseowl.co.uk/python/videos/python-programming/hangman/
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 https://youtube.com/playlist?list=PLNIs-AWhQzckGrdnwITFlXGqiXTCAhWWi
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:
https://www.youtube.com/channel/UCbi5G5PjWBaQUFy7XU_O7yw/join
Or you can click this link https://www.wiseowl.co.uk/donate?t=1 to make a donation. Thanks for watching!
Visit https://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!