- I'm working on nothing much!
- 2021 Goals: To fully learn and understand how Assembly works!
- Fun Fact: I started coding when I was 8.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rabbitPos = Math.floor(Math.random() * 101); | |
function rabbitMove(rabbitPos) { | |
let e = Math.floor(Math.random() * 2); | |
switch (e) { | |
case 0: | |
if (rabbitPos >= 100) { | |
return (rabbitPos -= 1); | |
} else if (rabbitPos <= 0) { | |
return (rabbitPos += 1); | |
} else { |