Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
WestCoastSwing
/
RelativePlacement
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
9e3be20b
...
9e3be20b926efb9e54e855a9fbb416bdee65aedf
authored
2016-12-07 01:03:42 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implement addVotes
1 parent
71555bf1
Pipeline
#16
for
9e3be20b
failed
in 21 seconds
Changes
1
Pipelines
1
Builds
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
lib/relative-placement.js
lib/relative-placement.js
View file @
9e3be20
...
...
@@ -82,7 +82,14 @@
candidate
.
votes
.
push
(
i
);
}
};
RelativePlacement
.
prototype
.
addVotes
=
function
()
{};
/**
*
* @param {String[][]} votes
*/
RelativePlacement
.
prototype
.
addVotes
=
function
(
votes
)
{
votes
.
forEach
(
vote
=>
this
.
addVote
(
vote
));
};
RelativePlacement
.
prototype
.
getResult
=
function
()
{
return
relativePlacement
(
this
.
votes
,
this
.
candidateList
);
};
...
...
Please
register
or
sign in
to post a comment