Skip to content

Commit 6e232bd

Browse files
committed
Make these code samples better emulate a REPL
1 parent 54de04d commit 6e232bd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/programming/game-state.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Your robot can be in 1 of 2 modes: `DEVELOPMENT` and `COMPETITION`. By
1515
default, your robot will be in `DEVELOPMENT` mode:
1616

1717
``` python
18-
robot.is_competition
19-
>> False
18+
>>> robot.is_competition
19+
False
2020
```
2121

2222
During competition mode, your robot will stop executing code at the end
@@ -29,8 +29,8 @@ zone. The number of zones depends on the game. Each zone is given a
2929
number, which you can access with the `zone` property:
3030

3131
``` python
32-
robot.zone
33-
>> 1
32+
>>> robot.zone
33+
1
3434
```
3535

3636
During a competition match, a USB drive will be used to tell your robot

docs/programming/motor-board.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ my_motor_board.motors[1].power = -1
5151
These values can also be read back:
5252

5353
``` python
54-
my_motor_board.motors[0].power
55-
>>> 1
54+
>>> my_motor_board.motors[0].power
55+
1
5656

57-
my_motor_board.motors[1].power
58-
>>> -1
57+
>>> my_motor_board.motors[1].power
58+
-1
5959
```
6060

6161
!!! warning

0 commit comments

Comments
 (0)