Game Board with 2D Array / Processing + Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hi I am really new to python but what packages do you use for the draw function?

Lofibeats.Lounge
Автор

I tried to put this into a python project and run it (copied the code plus imported fill and size from tensorflow and cmath from rect) but I do not see anything graphically like a 2D mesh. What am I missing?

anjakoller
Автор

you legend, thankyou very much, was finding it hard to interpret 2d arrays from java to python

mickyr
Автор

What's the best way to check if neighboring tiles are populated?
suppose tilemap is our 2d array filled with random noise of 1's and 0's

I was thinking of looping through the rows and indexing them like so:


tilemap[r-1][c] # above
tilemap[r+1][c] # below
tilemap[r][c-1] # to_left
tilemap[r][c+1 # to_right

maybe using an if statement to set a Boolean to true or false if its a 1 or a 0

geraldleesesideburnsg
Автор

Not sure if anyone would see this. How do you display the gameboard as a list? For this list, the indexing starts from the bottom left and continues to the right till the end of the row. Then the next index is the left most cell on the row above and repeat until you end up at the end of the gameboard which is the upper right corner as the last index. I'm coding it for 7 columns instead of 8 columns in this video but that's not the issue. I just need help to figure out how I should code it such that the indexing is counted as stated.

nvapisces
Автор

I am new to processing. I can not see output of the code. What should I do to see ?

eminyavas
Автор

can we do the same in pycharm or vs code?

bakhtullah
Автор

That cheeky cpp laugh at 1:34 doe lmfao

ReyhunterMC
Автор

How does it know what is a row and what is a column? I tried changing the names of the variables and it still works.

tofolcano
Автор

Hello there, this was int he similar videos when I was checking some of my own. I do like the elegance of your video though. I honestly made my 2D array before being introduced to 2D arrays. Just meant I manually made it so the algorithm is longer
Just like your video, thank you

EverythingYouNeedToKnowEYNK
Автор

This doesn't work on it's own.. Doesn't it miss calling the functions for example.. As well as drawing it..

iglonator
Автор

Hi, I am learning python newly, can you help me with some questions? Please do reply me.

siyyuch
Автор

Is there any ways to import Numpy into Processing? With numpy, array operation gets much easier.

yongxinchen
Автор

you might want to preface the video before just showing us code, without telling us what youre doing at all...

memorablename
Автор

Hi, how do you get processing python to run in Mac? Please can you help asap, please

ap
Автор

Erm...this is late but..can u make a tutorial on making a board game like player 1 and player 2 roll 2 dices along a board with a grid...need help! ( on python )

shryr
Автор

When I try to run this in Python 3.4.3, nothing happens. What is missing?

tedwilson
Автор

Is there any way to get this to work in PyCharm?

terachip
Автор

How to draw text that can be changed on rect?

trungchien
Автор

Very cool! but it's hard to understand at the beginning with programming

HenryGamesHD