Skip to content

Commit

Permalink
alteracao dos exemplos para ilustrar nova forma de usar o operator
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarth committed Jan 28, 2025
1 parent 379e7e8 commit c091c4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/aulas/04_modelagem_espaco/src/robo_aspirador.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
class RoboAspirador(State):

def __init__(self, op, posicao_robo, situacao_esq, situacao_dir):
# You must use this name for the operator!
self.operator = op
super().__init__(op)
self.posicao_robo = posicao_robo
self.situacao_esq = situacao_esq
self.situacao_dir = situacao_dir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
class RoboAspiradorQuadrado(State):

def __init__(self, op, posicao_robo, situacao):
# You must use this name for the operator!
self.operator = op
super().__init__(op)
self.posicao_robo = posicao_robo
self.situacao = situacao

Expand Down
2 changes: 1 addition & 1 deletion docs/aulas/04_x_buscas/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ from datetime import datetime
class SumOne(State):

def __init__(self, n, op, g):
self.operator = op
super().__init__(op)
self.number = n
self.goal = g

Expand Down

0 comments on commit c091c4b

Please sign in to comment.