MCPcopy Create free account
hub / github.com/CleanCut/invaders / all_killed

Method all_killed

src/invaders.rs:79–81  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77 false
78 }
79 pub fn all_killed(&self) -> bool {
80 self.army.is_empty()
81 }
82 pub fn reached_bottom(&self) -> bool {
83 self.army.iter().any(|invader| invader.y >= NUM_ROWS - 1)
84 }

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected