Open 9r0x opened 2 years ago
Please correct me if I am wrong: Random.randint(a,b) is [a,b] inclusive, while a valid location is [1,hits].
Random.randint(a,b)
[a,b]
[1,hits]
This bug may miss a few valid positions when goal is 0, especially likely whenhits is small.
goal
hits
Please correct me if I am wrong:
Random.randint(a,b)
is[a,b]
inclusive, while a valid location is[1,hits]
.This bug may miss a few valid positions when
goal
is 0, especially likely whenhits
is small.