HomeJavaModsVillager Connect Four
Villager Connect Four
ModsJava

Villager Connect Four

by johnnyscriptt · on Modrinth

Play Connect Four against villagers! A button on the trade screen starts a full game - their skill scales with trading level, and because the villager…

⬇ Download on Modrinth
Villager Connect Four — screenshot 1Villager Connect Four — screenshot 2Villager Connect Four — screenshot 3Villager Connect Four — screenshot 4Villager Connect Four — screenshot 5Villager Connect Four — screenshot 6

⬤ Villager Connect Four

That Master-level librarian drives a hard bargain. They have also solved Connect Four, and they are going first.

Open any villager's trade screen and hit Connect Four. A full board opens right there - no items, no commands, no setup.

The villager goes first, and that is the point

Connect Four is a solved game. On the standard 7×6 board, the player who drops first can force a win - proved by exhaustive computation, not just observed. Whoever moves first is playing a won game.

So the villager gets it. That means a Master villager isn't "very strong": it is unbeatable, and no amount of skill changes that. If you'd rather have the winning side, one line of config hands it to you - see below. Your colour follows the turn order, so whoever drops first plays yellow.

How strong are they?

A villager's trading level sets its strength - and each level thinks in a genuinely different way, not just deeper:

Villager level Connect Four strength
Novice Drops almost at random - won't take a win, won't block yours
Apprentice Takes the win in front of it, blocks yours, sees nothing further
Journeyman Never plays into a loss; makes and spots double threats
Expert Understands odd/even threat parity
Master Has solved the game

The jump from Journeyman to Expert is the interesting one. Every column holds an even number of cells, so in a pure filling race the first player takes the 1st, 3rd and 5th cell of a column and the second player takes the 2nd, 4th and 6th. A threat is therefore only worth something if its row falls to its owner - the same three-in-a-row one row higher can be worthless. A Journeyman counts threats. An Expert counts the ones that will actually be reached.

How to play

Configuration

config/villagerconnectfour.properties, written on first run and documented inline:

Under the hood

Compatibility

Plays nicely with the other Villager Games mods - the trade-screen buttons stack instead of overlapping.

Requires Fabric API. Client and server both need the mod.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more