We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66a5f84 + d172db9 commit a72ee47Copy full SHA for a72ee47
microbit/src/11-snake-game/src/game.rs
@@ -181,8 +181,6 @@ impl Game {
181
182
pub(crate) fn new(rng_seed: u32) -> Self {
183
let mut rng = Prng::new(rng_seed);
184
- let mut tail: FnvIndexSet<Coords, 32> = FnvIndexSet::new();
185
- tail.insert(Coords { row: 2, col: 1 }).unwrap();
186
let snake = Snake::new();
187
let food_coords = Coords::random(&mut rng, Some(&snake.coord_set));
188
Self {
0 commit comments