This is probably a stupid question but I just can’t wrap my head around how to get the coordinates for someone else than player 1. I realize that by default the x
and y
coordinates correspond to player 1
, but I can’t figure out how to access the coordinates for player 2
. I looked at the other forum thread but sadly it didn’t help me. Hope someone can give a pointer because right now I keep placing the wall on my own dragon
Input for one game turn
First playerCount lines: for each player, 3 integers x, y, wallsLeft: (x,y) indicates the player’s coordinates on the grid. (0,0) is the top-left corner.