some comments - need more

This commit is contained in:
AUnicornWithNoLife 2021-07-10 15:26:23 +01:00
parent e2c012695d
commit 9aaa5a6f49

View File

@ -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