Skip to content

Commit

Permalink
Correçao no rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosilva16 committed Nov 23, 2021
1 parent fefc668 commit d4e7b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion student.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def agent_loop(server_address="localhost:8000", agent_name="student"):

flag = False

if(piece == None):
while(piece == None):
state = json.loads(
await websocket.recv()
) # receive game update, this must be called timely or your game will get out of sync with the server
Expand Down Expand Up @@ -291,6 +291,7 @@ def rotate(piece, type_piece, numOfrotations):
block[0] -= 1
block[1] += 1
return piece
return piece


def get_aggregate_height(game):
Expand Down

0 comments on commit d4e7b82

Please sign in to comment.