RUVIDEO
Поделитесь видео 🙏

Coding a game in Python | Check for identical values in a COLUMN

Checking for identical values in a 'column' in a 1d array game board representation.
Even if you are not interested in games, or Python, as a coder this logic is still useful.
Checking for 3 in a ROW is easy, but in a COLUMN requires slightly more thought...

Follow along with the code : https://github.com/RGGH/Python/blob/master/game_ideas/check_columns.py

Playlist for this series : https://youtube.com/playlist?list=PLKMY3XNPiQ7tQxTUYNC9eXzXCmHZ1rXwR

- chapters -
00:00 intro - board game ideas - gomoku
05:00 prepare heuristics for minimax
13:10 check the columns with nested for loops
17:15 checking the rows in vscode
22:47 get the board positions / edit the code to print indices
26:15 change the board size constant to add more rows

I'll read this article in due course as I try and better understand heuristics :
?https://www.researchgate.net/publication/331552609_Research_on_Different_Heuristics_for_Minimax_Algorithm_Insight_from_Connect-4_Game

Feel free to skip ahead and read it / advise me on my code / suggest improvements / other articles!

? Become a patron ?
? https://www.patreon.com/drpi

Buy Dr Pi a coffee (or Tea)
☕ https://www.buymeacoffee.com/DrPi

? Proxies ?
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! ?

? 10% off ScraperAPI : https://www.scraperapi.com?fpr=ken49
◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

Thumbs up yeah? (cos Algos..)

#forloop #tutorials #pythontutorial

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Coding a game in Python | Check for identical values in a COLUMN», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.