Welcome to Incremental Social! Learn more about this project here!
Check out lemmyverse to find more communities to join from here!

Mmagnusson

@Mmagnusson@programming.dev

This profile is from a federated server and may be incomplete. Browse more on the original instance.

(android) Any good board game tutorial you could recommend?

I'd like to start developing a board game I love playing. There's an iOS implementation of it, but none for android. I don't even know where to start and which principles I could possibly follow. I've been working as a (business) software dev for the last 20 years, so I have some clue about programming....

Mmagnusson ,

Hi. I work at a conpany that makes digital card games.

Start by making the rules work. We generally use a callback implementation. We have a class that handles the game and enforces rules and dictates flow, classes that represent players, and then a rendering class.

The game will call relevant functions to prompt the players for an action, passing the game state with them. The players respond with what they want to do. The game calls the renderer to draw it out, and the renderer will then call the passed callback action. Repeat until the game is over.

When a human is involved then you just hook actions to buttons and pieces and clickable elements that the game catches and responds to if needed.

Really you can use any principle or design paradigm you want, but since you are making a "simple" turn based game just having it simple and well segmented is an easy way to keep a handle on it.

Mmagnusson ,

Are grapes not considered berries in the anglosphere? In Icelandic they literally are named "Wine berries" and considered as such.

Mmagnusson ,

I mean, it isn't meaningless, just culturally subjective and lacking a rigerous definition. Berries are a set of specific fruit, which fruit being included being determined by the culture in question base on percieved similarities and historic uses. We use it to quickly bring up the specific group and whatever vague characteristics we percieve them to share.

So, the definition for berries that you seek is simply "the fruit people you're interested in would point at and identify as a berry", which is a vague definition and not rigerous at all, but most people would in fact think of the same thing you do if you say "I put berries on top of my cake". If I ask my wife "hey, on your way home swing by the store and buy some berries, any type will do", she will not bring a watermelon. She in fact will buy what we both agree are berries, and so the word has useful meaning.

You'll find most classifications humans have do this too. The real world is really good at refusing to fit into the neat boxes we made to classify it and the things in it, and yet we can still use them fine enough as long as we don't get lost in semantics and wondering if a hot dog is a sandwich or cereal soup.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • incremental_games
  • random
  • meta
  • All magazines