Game logic

v3 · Preview

Framework v3 is an opt-in preview available to everyone. New games use the stable framework by default.

Scores and game end

scores

Returns every seat's score. Boardweaver calls it after every step.

pub struct Score {
    pub private_points: Vec<f64>,
    pub public_points: Vec<f64>,
}
  • Column i of a seat's score is public_points[i] + private_points[i]. A missing column counts as 0. Name each column in the client: see Scores.
  • Seats rank by the first column, highest first. The second column breaks a tie on the first, and so on.
  • A seat sees every seat's public points and only its own private points. Use private points for a score other seats must not see yet, such as a hidden objective.

is_game_over

Returns whether the match has ended. It receives the scores that scores just returned. Once it returns true, Boardweaver offers nothing to any seat and refuses every later step as NotOffered.

Need a hand with this?

Join our Discord