Code Monkey home page Code Monkey logo

Comments (8)

flylee2004 avatar flylee2004 commented on June 15, 2024

HI ,my English is poor,sorry ,but thank you for your share again

from footballsimulationengine.

flylee2004 avatar flylee2004 commented on June 15, 2024

penalty_taking and jumping what is that mean??

from footballsimulationengine.

flylee2004 avatar flylee2004 commented on June 15, 2024

sometimes the ball and player stop,why?Most of the iterations in 3 4000 occur

from footballsimulationengine.

GallagherAiden avatar GallagherAiden commented on June 15, 2024
  1. There are currently no result metrics - I've created an issue: #31
  2. I would do between 4000 and 6000 iterations for each half.
  3. I don't provide graphics as part of the node module, but in https://github.com/GallagherAiden/footballsimulationexample you could adapt:
 for (i = 2; i < result.length - 1; i++) {
				ctx.beginPath();
				ctx.moveTo(result[i], result[i + 1]);
				ctx.lineTo(result[i] + 1, result[i + 1] + 1);
				if (i < 24) {
					ctx.strokeStyle = '#ff0000';
				} else if (i > 12 && i < result.length - 3) {
					ctx.strokeStyle = '#0000FF';
				} else {
					ctx.strokeStyle = '#000000';
				}
				ctx.stroke();
				i++;
			}

in https://github.com/GallagherAiden/footballsimulationexample/blob/master/public/js/match.js to write the player names instead.
4. penalty_taking is how good they are at taking a penalty and 'jumping' is how high they can jump including their height.

from footballsimulationengine.

flylee2004 avatar flylee2004 commented on June 15, 2024

from footballsimulationengine.

GallagherAiden avatar GallagherAiden commented on June 15, 2024

Hi @flylee2004 - I'll look to fix the players and ball getting stuck and will associate it with this issue: #33

I'm looking to work in ratings and fitness into the algorithms of success for tackles, free kicks, penalties, shooting etc in the next version I publish.

from footballsimulationengine.

GallagherAiden avatar GallagherAiden commented on June 15, 2024

@flylee2004 please let me know if you want anything specific raising or fixing

from footballsimulationengine.

GallagherAiden avatar GallagherAiden commented on June 15, 2024

Hi @flylee2004 I have added a temporary fix for players getting stuck: 7bf5cf8
this is not on the npm node module but in this repository (so you will need to clone the repo). it may or may not be included in the next version. Please let me know if there's anything else you would like help with

from footballsimulationengine.

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.