the contestants should have more features available. for example controlling the height and speed of the paddle by setting percentages. such that the creators can assign 100 points to height and speed in total to vary the behavior of their paddles.
for this we should change the way a contestant is created by not only being a function declaration but rather by declaring a whole object.
instead of return 1they could be forced to created something like:
{
height: 50,
speed: 50,
compute: function(dt, gameInfo, ballInfo, myPaddleInfo, otherPaddleInfo) {
return 1;
}
}
the contestants should have more features available. for example controlling the height and speed of the paddle by setting percentages. such that the creators can assign 100 points to height and speed in total to vary the behavior of their paddles.
for this we should change the way a contestant is created by not only being a function declaration but rather by declaring a whole object.
instead of
return 1they could be forced to created something like: