GithubHelp home page GithubHelp logo

Car AI tests about egregoria HOT 6 CLOSED

uriopass avatar uriopass commented on May 10, 2024
Car AI tests

from egregoria.

Comments (6)

skairunner avatar skairunner commented on May 10, 2024 1

from egregoria.

skairunner avatar skairunner commented on May 10, 2024

As far as I can tell, these steps would be required:

(1) Ability to generate and load test scenarios (w/map, vehicle, and success conditions)
(2) Framework to headlessly start & run a scenario and check for completion
(3) Adding this as part of the CI/CD

from egregoria.

Uriopass avatar Uriopass commented on May 10, 2024

I agree on your points except for CD (3), this is merely an indicator of how well the car AI performs but shouldn't be required for CI to pass.
Random might be used for car AI which would lead to flaky tests, also car AI is floating-point heavy which leads to further reproducibility problems. (note: I tried once to have reproducible runs for easier debugging but it was so hard I gave up.)

However, this applies to complicated tests (lots of cars doing hard interactions). I agree that some simple tests (<= 2 cars, simple goals) could be used to test for regressions.

About scenarios (1), I'm happy I got Lua working and I think it could be a cool application, and implementing this would further extend the modding possibilities which are non-existent at the moment.

(2) shouldn't be too hard either since the core engine egregoria is separated from the render module wgpu-renderer so having a headless client using the mods module for running scenarios shouldn't be too hard.

from egregoria.

Uriopass avatar Uriopass commented on May 10, 2024

Ah ! Interesting, I'm not sure how this information could be presented but then I definitely agree.

from egregoria.

Uriopass avatar Uriopass commented on May 10, 2024

Got some work done, a basic headless runner, a scenario player in wgpu-renderer and some lua bindings for the world to modify it. See the test script here

from egregoria.

Uriopass avatar Uriopass commented on May 10, 2024

Got scenarios up and working, even in the wgpu-renderer accessible from the GUI. Not entirely complete but closing. (Not running on CI yet)

from egregoria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.