Skip to content

Issue implementing the step() function #13

@va3ndf

Description

@va3ndf

https://repl.it/@NicholasFicara/Flappy-AI

This is the code that I am working on. I got the whole ai part down. I was wondering how I could implement the step method. Every way I have done it so far has given errors. The update() function is called every 1/60 of a second. I wanted it to run there to make the decision to flap or not. Right now I get this error.

Uncaught (in promise) TypeError: Cannot read property 'randomOutput' of undefined

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions