some comments - need more
This commit is contained in:
parent
e2c012695d
commit
9aaa5a6f49
@ -1,6 +1,14 @@
|
||||
// invert a playing charcter
|
||||
|
||||
function invertPlayer(inp) { return (inp == 1) ? 2 : 1 }
|
||||
|
||||
// given side to like, it will give a recomneded move
|
||||
|
||||
function calculate(like)
|
||||
{
|
||||
const dislike = (like == 1) ? 2 : 1;
|
||||
// invert like to work out who to dislike
|
||||
|
||||
const dislike = invertPlayer(like);
|
||||
|
||||
//LIKE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user