Skip to content

Commit

Permalink
Resolved minor formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
We-Gold committed Aug 9, 2023
1 parent dd8c8cf commit 714eef0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/racing/src/car.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export class Car {
// Reward the individual based on the number of black pixels it can see
const reward =
this.inputs.reduce((acc, curr) => (curr === 1 ? acc + 1 : acc), 0) /
this.inputs.length + this.speed / (2 * CAR_SPEED)
this.inputs.length +
this.speed / (2 * CAR_SPEED)

return reward
}
Expand Down

0 comments on commit 714eef0

Please sign in to comment.