← 返回 coinbase 的题目列表OA3: Flappy Bird Jump Boundary Function
类型:online_judge
Implement a jump-boundary / collision-detection function for a Flappy Bird–like game.
Given:
The bird’s current position and velocity (or position only)
Obstacles (pipes) with their positions and the vertical gap interval
World boundaries (top/bottom bounds and possibly ground height)
Requirements:
For a single time step (tick) or a jump action, determine whether the bird collides with any obstacle or boundary
If no collision occurs, return the updated bird state (e.g., new y/velocity); otherwise return a collision result
I/O format and constraints: not specified in the post; follow the platform’s hidden tests.