Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

philihp/fields-of-arle

Repository files navigation

If you're interested in working on this, please reach out to me, my email is in the git logs. I'm going to archive this repository for now, though, since I've been pulled toward other projects and I doubt this will ever get any attention. Maybe someday. But for now... frozen in carbonite.

Fields of Arle on boardgame.io

Depfu codecov

This is an implementation of Fields of Arle to play online. It takes the following approaches:

  • State shape should be similar to the physical board. The G schema should be intuitive
    • e.g. we could keep a count of each animal and have the view figure out where they live on the farm, however instead keep the location of each animal on the land/tableau.
    • Simple, fungible objects with infinite supply (such as a timber), which will not ever have anything resting on top of them should be stored as a string. Inventory is represented as ['clay','clay','clay'], rather than {clay: 3}.
  • Derived data are handled by React views.
    • Which land tiles are flooded is calculated on the client.

Setting Up

  • Get node 8.12
  • Get npm 6.4.1
  • Checkout the repo and install with npm install
  • Run the site with npm run start

Warranties

This is mostly an academic passion project. As such, it has turned into an exercise for me to learn how babel works, or how eslint works, or how functional programming works. As such, I make no guarantees for code quality. Always be learning.

Timelines

I have resolved to make a commit a day on this project. We'll build something cool someday.

Bugs & Contributing

If you find a bug, please open a Github issue or better yet a PR. My email should be in the git logs, if you'd like to contact me.

  • I will accept any PRs that increase code coverage by creating tests.