Skip to content
pythonhack000Public

About

A daily war over a hand-drawn island, played inside a Reddit post. The whole subreddit fights for one map. Devvit Web game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Feudlands

A daily war over a hand-drawn island, played inside a Reddit post. Each day has one feud with two sides (cats or dogs, tabs or spaces). The whole subreddit fights for the same island, and the best arguments in the war council become the battle cries that win hexes.

Play it: r/feudlands_dev · Watch: trailer, 45-second Short

Built with Devvit Web for Reddit's Game of the Day hackathon.

The island mid-battle

How it plays

  • Pick a side for the day's feud. You're sent to one island of the day's archipelago: three to start, more as more people join.
  • Hold an island and your side's fleet adds 1 to every charge on the islands beside it.
  • Place camps on free hexes. Surround an enemy camp on every side and it turns to yours. Towers can't be boxed in.
  • Charge an enemy hex beside your land. Attack is 1, plus your land around it, plus your battle cry. Defence is the piece, plus their land around it, plus 1 for holding it.
  • Argue in the war council. Every 20 upvotes make an argument 1 stronger as a battle cry; the best rebuttal takes its score off.
  • At 00:00 UTC the result is pinned under the post with the day replayed as a GIF, and tomorrow's feud, picked by the council, goes up as a new post.

Layout

  • app/src/client: the game (game.html, game.js) and the feed card (splash.html)
  • app/src/shared: rules both sides agree on: the island, captures, charges, the crowd's moves, topics
  • app/src/server: the Hono API, the move log in Redis, midnight, and the PNG and GIF painters
  • app/test: server tests (npm test)
  • app/tools/local.ts: the whole game against an in-memory server, no Reddit needed
  • prototype/: the first single-file prototype

Run it

cd app
npm install
npm test             # server tests
npm run local        # http://localhost:5190/game.html, a local war in memory
npm run dev          # playtest on your own subreddit (needs `npm run login` first)

About

A daily war over a hand-drawn island, played inside a Reddit post. The whole subreddit fights for one map. Devvit Web game.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages