Practice #22: Find and Destroy all Enemy Targets | Python Programming for Beginners

preview_player
Показать описание
Description
In this exercise, you'll practice working with game objects in a coordinate system.
You learn how to measure distance between objects given their position in the map.
One more important thing, you'll see how I use anonymous lambda function to sort a list by a specific criteria and list item's attribute. Very handy and convenient!

-------------------------
Python Coding for Beginners
Python Programming for Beginners
Learn Python by Building Projects
Python Exercises and Practical Examples with solutions
Practice Python Online with solution
How to write a Python program
Python Programming Data Structure and Algorithm
Python Problem Solving
Python Game Tutorial
Python Game Programming
Python Game Development
Python Tips and Tricks
Рекомендации по теме
Комментарии
Автор

math.hypot() and list.sort(key=lamba) functions are very handy for working with game map coordinate system, so try to practice more and get used to it!

makeeverydayezday
Автор

The way you explain to us is amazing ❤ what a guy ... please keep share tutorials for beginners

starboys
Автор

One of the best videos I've watched explaining the coordinate system in geometry term. You got my vote!!!!

petergrivas
Автор

Really wonder man I am very pleasure to watch it. Real time examples make me to understand more clearly. Thank you so much. Please make more videos on OOP also.

waynelineker
Автор

Hi, I am learning Python OOP and trying to practice more on OOP concepts. With this practice video, do you think it's possible to do it with OOP approach, i.e. each target is an object with name, distance as object attributes, and destroyed (True/False) is object method?

sammccane
join shbcf.ru