RumbleBot random turn
This commit is contained in:
@@ -108,6 +108,9 @@ public class RumbleBot extends Bot {
|
||||
protected char walkAround(char[][] grid) {
|
||||
if (steps == 0) {
|
||||
steps = random.nextInt(20);
|
||||
if(random.nextBoolean())
|
||||
return '<';
|
||||
else
|
||||
return '>';
|
||||
} else {
|
||||
steps--;
|
||||
|
||||
Reference in New Issue
Block a user