try using nextInt() instead of nextDouble()
pick a distance from the edge you want, say 5 and do something like
destX = 5+(Double)r.nextInt(dx-5); etc.
If you are picking a random destination, it probably doesn't have to be smaller grained than an int.
Search found 2 matches
- Wed Nov 28, 2007 2:33 am
- Forum: BitBath
- Topic: How are bitbath matches run?
- Replies: 1
- Views: 16598
How are bitbath matches run?
I've uploaded my bot... now what?
It would be nice to have a little more feedback with the actual game...
Can you give a description of the match scheduling and organization?
Thanks!
Alphie
It would be nice to have a little more feedback with the actual game...
Can you give a description of the match scheduling and organization?
Thanks!
Alphie