You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this year your snake (You) is sent over as a Snake object (and not an id used to identify your snake in the Snakes list), I don't think it is necessary to send over your snake again in the Snakes list.
`interface World {
object: 'world';
id: number;
you: Snake; # Your snake
snakes: List<Snake>; # Contains your snake again
height: number;
width: number;
turn: number;
food: List<Point>;
}`
This is a minor optimization, but it will be removing redundancy and therefore reducing the size of the JSON string.
The text was updated successfully, but these errors were encountered:
Since this year your snake (You) is sent over as a Snake object (and not an id used to identify your snake in the Snakes list), I don't think it is necessary to send over your snake again in the Snakes list.
This is a minor optimization, but it will be removing redundancy and therefore reducing the size of the JSON string.
The text was updated successfully, but these errors were encountered: