You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nebylo by lepší takovéhle „nepolíčko“ do seznamu tilelist_layer vůbec nedávat?
Na tomhle miniproblému nic dalšího nezávisí. Doporučuju někomu, kdo se v datovém modelu ještě úplně neorientuje (a má nějakou tu hodinku času). Jestli už teď víš jak to vyřešit, přenech to někomu jinému (nebo lépe, nabídni se jako kouč).
The text was updated successfully, but these errors were encountered:
New structure of data in class State(board, robots):
Board is now dictionary with coordinates as a key and the value
for certain key now contain all tiles with the same coordinates.
For example: {(0,0): [Tile, Tile], (0,1): [Tile] ... }
Robots remember now their location on the board.
Tile(0,0) also removed. Issue PyLadiesCZ#73 done.
Když je v JSON mapě prázdné políčko (
id=0
), je reprezentováno pomocíTile(path=0, rotation=0)
:roboprojekt/backend.py
Lines 58 to 66 in 29125f3
Ve frontendy je pak pro
path=0
speciální logika:roboprojekt/frontend.py
Lines 43 to 47 in 29125f3
Nebylo by lepší takovéhle „nepolíčko“ do seznamu
tilelist_layer
vůbec nedávat?Na tomhle miniproblému nic dalšího nezávisí. Doporučuju někomu, kdo se v datovém modelu ještě úplně neorientuje (a má nějakou tu hodinku času). Jestli už teď víš jak to vyřešit, přenech to někomu jinému (nebo lépe, nabídni se jako kouč).
The text was updated successfully, but these errors were encountered: