Skip to content

running .js or .ts javascript or typescript AI fail #50

Description

@1000i100

i've tried similar command than the readme one :

$ java -jar ../cg-brutaltester-1.0.0.jar \
    -r "java --add-opens java.base/java.lang=ALL-UNNAMED -jar -Dleague.level=5 target/winter-2024-sprawl-1.0-SNAPSHOT.jar" \
    -p1 "node myAI.js" \
    -p2 "bun myAI.ts" \
    -s     \
    -t 4   \
    -l logs   \ 
    -n 1

but it fail ReferenceError: Can't find variable: readline in the logs.
We are talking about it here : #49
it look it's about stdin listening issue.
Is there a good way to use cg-brutaltester with javascript or typescript code ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions