Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bones-ai/rust-flappy-bird-ai
/ functions
Functions
29 in github.com/bones-ai/rust-flappy-bird-ai
⨍
Functions
29
◇
Types & classes
12
↓ 4 callers
Method
mark_dead
(&mut self)
src/agent.rs:110
↓ 3 callers
Method
update
(&mut self, top_pipe: &Pipe, bottom_pipe: &Pipe)
src/agent.rs:62
↓ 2 callers
Method
add_pipe
(&mut self, x_pos: f32)
src/game.rs:178
↓ 2 callers
Method
draw
(&self)
src/agent.rs:39
↓ 1 callers
Method
calc_fitness
(&self)
src/simulation.rs:86
↓ 1 callers
Method
dot_prod
(&self, node: &Vec<f64>, values: &Vec<f64>)
src/nn.rs:99
↓ 1 callers
Method
get_nearest_pipes
(&self)
src/game.rs:171
↓ 1 callers
Function
init_resources
()
src/resources.rs:15
↓ 1 callers
Method
mutate
(&mut self)
src/nn.rs:57
↓ 1 callers
Method
predict
(&self, inputs: &Vec<f64>)
src/nn.rs:42
↓ 1 callers
Method
reset
(&mut self)
src/game.rs:213
↓ 1 callers
Method
selection
(&self)
src/simulation.rs:71
↓ 1 callers
Method
sigmoid
(&self, y: f64)
src/nn.rs:109
↓ 1 callers
Method
up_force
(&mut self)
src/agent.rs:114
Method
draw
(&self, settings: &Settings)
src/simulation.rs:53
Method
draw
(&self)
src/game.rs:33
Method
draw
(&mut self, stats: &Statistics)
src/editor.rs:52
Function
main
()
src/main.rs:9
Method
mutate
(&mut self)
src/agent.rs:106
Method
new
()
src/resources.rs:24
Method
new
()
src/simulation.rs:22
Method
new
()
src/agent.rs:22
Method
new
(pos: Vec2, h: f32)
src/game.rs:29
Method
new
(layer_sizes: Vec<usize>)
src/nn.rs:17
Method
new
()
src/editor.rs:20
Method
update
(&mut self, settings: &Settings)
src/simulation.rs:30
Method
update
(&mut self)
src/game.rs:75
Method
update
(&mut self)
src/editor.rs:39
Method
with_brain
(other: &Bird)
src/agent.rs:33