Giter VIP home page Giter VIP logo

leek-wars-generator's Introduction

Leek Wars

Codacy Badge CI

The Leek Wars website frontend, in Vue.js + TypeScript. This is the frontend repository, altough it also contains all the information about the whole Leek Wars projet.

Related projects: LeekScript and Leek Wars fight generator.

Banner

Deployment

The project is very easy to install and deploy in 10s:

git clone https://github.com/leek-wars/leek-wars.git
cd leek-wars
npm i
npm start

Then go to localhost:8080 in your browser.

Be careful, this project is only the front end of Leek Wars, so it's connected to the production server. When you log into this local version, you will use your real account!

Architecture

Banner

Hacking

I gladly accept pull requests to Leek Wars. Before starting work on a feature, see the contribution guidelines.

Libraries used

Social media

License

Distributed under the GPL3 license. Copyright (c) 2016-2023, Pilow

leek-wars-generator's People

Contributors

5pilow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

leek-wars-generator's Issues

Errors with default instructions (Ubuntu 20.04, Gradle 6.4.1, OpenJDK 11)

Hi,
I can speak French, if you wish.
I have checkouted this code and ran gradle jar without errors. However java -jar generator.jar --compile test/ai/basic.leek answered:

java.lang.NullPointerException
	at com.leekwars.generator.attack.weapons.Weapon.<init>(Weapon.java:31)
	at com.leekwars.generator.Generator.loadWeapons(Generator.java:199)
	at com.leekwars.generator.Generator.<init>(Generator.java:71)
	at com.leekwars.Main.main(Main.java:53)
Exception in thread "main" com.alibaba.fastjson.JSONException: syntax error, pos 1
	at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1085)
	at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1011)
	at com.alibaba.fastjson.JSON.parse(JSON.java:94)
	at com.alibaba.fastjson.JSON.parse(JSON.java:85)
	at com.alibaba.fastjson.JSON.parseObject(JSON.java:156)
	at com.leekwars.generator.scenario.Scenario.fromFile(Scenario.java:39)
	at com.leekwars.Main.main(Main.java:59)

It seems that the first error is due to the absence of "passive_effects" array in passive_effects.
The second one seems to be because basic.leek is not a JSON file, shouldn't it be java -jar generator.jar --compile test/scenario/scenario1.json instead ?
If a do that, I get these errors :

java.lang.NullPointerException
	at com.leekwars.generator.attack.weapons.Weapon.<init>(Weapon.java:31)
	at com.leekwars.generator.Generator.loadWeapons(Generator.java:199)
	at com.leekwars.generator.Generator.<init>(Generator.java:71)
	at com.leekwars.Main.main(Main.java:53)
Exception in thread "main" java.lang.NullPointerException
	at com.leekwars.generator.Generator.runScenario(Generator.java:138)
	at com.leekwars.Main.main(Main.java:64)

How should I solve thoses ?

By the way, I'm trying to simulate fight locally to be able to train Machine-Learning-based AIs for my leeks. Should I run it directly with https://github.com/leek-wars/leek-wars-generator and LeekScript V2 ? Are all the features currently in LeekWars all enabled with this new version of generator and LeekScript ?

Thanks anyway for developing LeekWars,
Regards,
Colin Chargy

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.