marlosgama

Untitled

Jul 18th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.23 KB | None | 0 0
  1. locks = {}
  2. locks[[1, 2]] = [nil, nil, true, nil, true, nil, false, nil, true]
  3.  
  4. client_x = 1
  5. client_y = 2
  6. client_direction = 2
  7.  
  8. p "bloqueado" if locks.has_key?([client_x, client_y]) && locks[[client_x, client_y]][client_direction]
Advertisement
Add Comment
Please, Sign In to add comment