Peer-to-peer client for playing Hex over the Internet, or locally.
Uses UDP hole punching to connect peers. See traversal-server for the source code of the traversal server.
Download an AppImage file from Releases.
Download a .exe file from Releases.
Download a .dmg file from Releases.
- Clone the repository.
git clone https://github.com/kevinsung/hexp2p.git
cd hexp2p
- Install dependencies.
yarn
- Build the app.
yarn package
The packaged app will be inside the release
directory.
The players (Black and White) take turns selecting a hexagon to fill with their color. A player wins when they have built a solid chain between the two edges of their color. The screenshot at the top of this page demonstrates a winning configuration for Black.
Normally, the game is played using the swap rule in order to mitigate the advantage of playing first. Under the swap rule, Black makes the first move, and then White chooses whether or not to swap pieces with Black. If White chooses to swap pieces, then Black's move is replaced with the equivalent White move, and then it is Black's turn. Play then continues as normal.
Copyright (C) 2021 Kevin J. Sung.
Licensed under the AGPLv3. See LICENSE.