pykkar python

Solutions on MaxInterview for pykkar python by the best coders in the world

showing results for - "pykkar python"
Alexander
15 Feb 2020
1from pykkar import * #Imports the pykkar package
2create_world("""
3########
4#  >   #
5#      #
6#      #
7#      #
8#      #
9########
10""") # <-- Creates a world for Pykkar
11step() #Steps one step forward
12right() #Turns 90 degrees to right
13put() #Puts a cone on the next square (up to 9 cones on 1 square)
14push() #Pushes the box or a cone on the next square forward by 1 square
15paint() #Paints the square Pykkar is standing on darker
16is_wall() #returns true or false - is the wall in the way?
17is_cone() #returns ture or false - is a cone in the way?
18is_box() #returns true or false - is a box on the way?
19is_painted() #returns true or false - is the square under Pykkar painted?
20get_dirextion() #returns the direction to which pykkar is facing
queries leading to this page
pykkar pythonpykkar python