Introduction - If you have any usage issues, please Google them yourself
Snake is a classic arcade game, the first prototype was born in 1976. The experiment required to complete a network war version of the Snake. Specific play as follows:. A game has 2 players, communicate over a network socket. Direction by w, a, s, d to control the snake player 1, player 2 up and down left and right arrows to control the direction of the snake. b. at least 2 add random wall, smugglers bumping into each other to win. c. each randomly generated two eggs, egg position does not coincide with the snake. 2 whole eggs after eating a snake, then after 2 seconds again generate two eggs. d. The initial length of the snake is 2, each eat an egg, snake length+1. Smugglers with their opponents snake and the snake god collision, the game ends, the other side wins.