Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Bomberman in Rust Bomberman in Rust
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Blaneus Savain
  • Bomberman in RustBomberman in Rust
  • Issues
  • #4
Closed
Open
Issue created Jan 14, 2022 by Axel Viala@darnuriaMaintainer

Le kill-bombe comment faire plus simple?

une elimination par bombe c'est: Si toute les conditions pour que une bombe explose alors on check les 4 cases autour + la case de la bombe.

Si sur n'importe: [[x - 1, y], [x, y - 1], [x, y], [x + 1, y], [x, y + 1]] un couple (x,y) == posPlayer alors dead.

Ça tombe bien il existe une fonction pour ça! https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.any

Edited Jan 14, 2022 by Axel Viala
Assignee
Assign to
Time tracking