Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CleanCut/invaders
/ reached_bottom
Method
reached_bottom
src/invaders.rs:82–84 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
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
}
85
pub fn kill_invader_at(&mut self, x: usize, y: usize) -> u16 {
86
if let Some(idx) = self
87
.army
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected