Skip to content

ML-powered mobile app for scoring Sagrada game boards easily

Notifications You must be signed in to change notification settings

hejmsdz/sagrada

Repository files navigation

Sagrada scoring app

This is a mobile application for players of the board game Sagrada, that helps with calculating the final scores. The scoring rules are complex and it's quite easy to make a mistake when calculating them by hand, but with this app it's no longer an issue. Just select the objectives you're playing with, take a photo your board and have the scoring computed automatically! Not only will you see the end result, but also a breakdown of points earned for each goal, with a visual indication of the dice contributing to the score and formula used to work it out.

The UI is written in Flutter, so it should be compatible both with Android and iOS, though I only tested it on an Android phone so far. Image recognition is carried out by two convolutional neural networks (one for reading numbers on the dice, one for colors), trained in TensorFlow on my own data and deployed as TensorFlow Lite models – so the inference is done on the user's phone, without the need to send anything to a server. I do, however, collect misidentified and manually corrected samples to improve the models.

The app is currently at an MVP stage. It does the job, but still I'm working on the user experience and accuracy of image recognition. Then I hope to release it to the Google Play store, so stay tuned!

Screenshots

Objective choice Image recognition Manual correction
Screenshot of the app with a grid of public objectives that the user can choose for a game Screenshot of the app with a captured photo of a game board and image recognition results represented as a grid of dice Screenshot similar to the previous one, but with a pop-up window that allows user to edit dice manually in case they're misidentified
Rules checking Scoring view Detailed scoring view
Screenshot of the app with a board that violates the dice placement rules, with the illegaly placed dice highlighted and a message requiring the user to choose which to remove from the board Screenshot of the scoring view with a preview of the board, list of objectives, points awarded for each of them, and the total score Screenshot similar to the previous one, except one of the objectives is selected and the dice that contribute to it are highlighted

About

ML-powered mobile app for scoring Sagrada game boards easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published