bs-ball
Installation
npm i bs-ball
Usage
const { addBallToGame, generateBallPosition } = require('bs-ball');
// Add the class 'ball' to the ball holder
addBallToGame(player, listOfPlayers);
// Display the ball inside the svg
generateBallPosition(svgZoom, ballPosition, svgElement);
All functions are curried.