Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.15 KB | None | 0 0
  1.   1 squares = [ a0, a1.. ] // 9 fields                                                                          
  2.   2 diresctions = [ up, right, down, left ]                                                                    
  3.   3                                                                                                            
  4.   4 for x in squares:                                                                                          
  5.   5     for y in directions:                                                                                    
  6.   6         // do something with the coordinates in x                                                          
  7.   7         // call your direction thing                                                                        
  8.   8         y()                                                                                                
  9.   9                                                                                                            
  10.  10 // 2 loops^^                                                                                                
  11. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement