Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Game of Y

Play the connection game Y: join all three sides of a triangle of hexagons with one chain. No draws. Against the computer or a friend.

How to play

  1. Dark and light take turns placing one stone on any empty cell. Stones never move and are never captured.
  2. The first player to join all three sides of the triangle with one connected chain of stones wins. The shaded rim cells are the sides; a corner cell touches two sides at once.
  3. There are no draws: when the board is full, exactly one player has a chain touching all three sides.
  4. Swap rule (optional): after the first stone, light may take it over instead of moving. A stone in the middle is strong, so the first player should open nearer an edge.

Keyboard and touch

Tap or clickPlace a stone on a cell
Arrow keysMove the cursor (click the board first to give it focus)
Enter or SpacePlace a stone on the cursor cell
UndoTakes back your last move (and the computer’s reply)

Tips

  • The centre of the triangle is the strongest place to start: from there every side is about the same distance away.
  • Blocking and connecting are the same thing in Y: a chain that stops your opponent reaching a side is usually halfway to joining your own three.
  • Two stones with two empty cells between them are as good as joined. Use these links to cover ground quickly.
  • Near the edges, a stone on the second row with two empty cells below it is already safely connected to that side.

About this game

Y was invented in the early 1950s by the mathematician Claude Shannon and, independently, by Craige Schensted and Charles Titus, who developed it further in the 1970s. Hex is a special case of Y: any Hex position can be played as a Y position, and like Hex, Y can never end in a draw.

The computer wins at once when it can and blocks a one-move win. Otherwise it plays Monte Carlo: it fills the board at random hundreds or thousands of times and picks the cell that most often belongs to its winning games. Hard plays the most games.

The tests replay random games and check every win against a separately written Python version, check that 300 random full boards always have exactly one winner, and that the computer takes a winning cell and blocks yours.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product