Загрузка...

5. Top Trumps Game: A high level overview of the gameplay logic

In this video we introduce the Top Trumps game in Python. This is an interactive card game played on a certain theme. In our version, we choose the theme of Skyscrapers. We see the gameplay and the key learning goals from this activity in this video.

1. Introduction and Learning Objectives
https://youtu.be/CQKCBe5F0IU

2. An introduction to Comma Separated Values (.CSV) files
https://youtu.be/TKq-iESXJvc

3. CSV.dictreader() method to convert the .csv file to a list of dictionaries
https://youtu.be/kxD96XDRsQY

4. List slicing and keys() method to extract the relevant keys
https://youtu.be/6cJHpXLO05o

5. A high level overview of the gameplay logic
https://youtu.be/5ZMLcdKoLeQ

6. Setting up the gameplay with a while loop
https://youtu.be/0q5-lPMURFo

7 A function to format and display the keys and values of player card dictionary
https://youtu.be/laWdZ92DncI

8. A mapping dictionary to facilitate the user interface
https://youtu.be/xaJSPJnlQWY

9.Using the mapping dictionary to get the key of interest from the player/computer
https://youtu.be/TxO2cG6chws

10. A flexible function to determine the winner of every move
https://youtu.be/YVtl93qVArA

11. A closer look at the default argument in a function and its usage
https://youtu.be/oFL8GKmV3a0

12. Calling the determine winner function as part of the game loop
https://youtu.be/ECaHDYHAE5s

13. Redistribute the cards to the player/computer/table at the end of a move
https://youtu.be/li4P-BDCpSU

14. Getting the game to be over and discussion of enhancement ideas
https://youtu.be/oScSIj02Kls
For more details, and step by step instructions, please take a look at www.wibyte.in

Видео 5. Top Trumps Game: A high level overview of the gameplay logic канала WIBYTE
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять