nguyenhuu263 commited on
Commit
16eae24
·
verified ·
1 Parent(s): a5e32cd

Create code.py

Browse files
Files changed (1) hide show
  1. code.py +7 -0
code.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ class CommandHumanoid:
2
+ def act(self, command):
3
+ if "walk" in command:
4
+ return [0.5, 0.0, 0.0]
5
+ if "turn" in command:
6
+ return [0.0, 0.5, 0.0]
7
+ return [0.0, 0.0, 0.0]