Unfortunately, Google’s Snake game does not have a two-player mode. The classic arcade version is single-player only, where you control the snake to eat apples and gain points while avoiding walls and your own growing body.
However, there are mods available that add customizations like two-player, so you could check GitHub for user-created versions that enable multiplayer Snake.