Mmagnusson

@Mmagnusson@programming.dev

This profile is from a federated server and may be incomplete. For a complete list of posts, browse 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 ,

But presumably you don't just stare at the wall. "Humans need something to do" is mainly bound to not just sitting around twiddling your thumbs. It's the reason we get bored, the brain is annoyed at not having anything to focus on.

It doesn't have to be literal work, just something you find engaging, be it going for a run, tending to houseplants, or completing your entire video game backlog.

And of course there is variation between humans. Some people cope well with having little to do, others always need to do something they find productive.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines