Difference between revisions of "Thread:Talk:Épéeist/Code mods/reply (8)"

From Robowiki
Jump to navigation Jump to search
(Reply to Code mods)
 
(No difference)

Latest revision as of 14:53, 20 March 2013

I might've found something to shrink. Here it is:

Change the chancesOfReversing to 30, 15, and 0; and then, change this line from:

direction *= (chancesOfReversing.charAt(deathCount) - (2 * Math.random()));

to:

direction *= (chancesOfReversing.charAt(deathCount) / integer - Math.random());

I didn't compile, so I don't know if it will work.