The NearbyGameSnake program demonstrates a simple local snake game with HMS Nearby Service. Through HMS Nearby Services, it is easy for two smart phones to establish connection without internet, and play game together.
- Build the demo. (1)To build this demo, please first import the demo in the Android Studio (3.x+). (2)Sync and build the project.
- Prepare two Android phones, and install this app to both phones.
Android Studio 3.X or a later version is recommended.
- open the app on both phones, input your name when first launched.
- you can find the other player in the "Nearby Player" List.
- both sides clicks "Start Game".
- One pick white side and the other pick black side, then you can play.

