No project description provided
Project description
robot-rock
This is a command line application implementation of Victor Nguyen's toy robot problem in Python.
Installation
The best way to install robot-rock
is via pipx, which will isolate the installation but make the app available globally:
$ pipx install robot-rock
Alternatively, you can create your own virtual environment:
$ python3 -m venv .venv-robot --prompt robot-rock
And then activate the virtual environment and install the app with vanilla pip:
$ source .venv-robot/bin/activate
(robot-rock)$ pip install --user robot-rock
Usage:
$ robot-rock [OPTIONS] COMMAND [ARGS]...
Options:
--help
: Show this message and exit.
Commands:
left
: Rotate the robot counterclockwise 90 degress.move
: Move the robot forward one square, without falling off the board.place
: Place the robot on the board.report
: Report the robot's position on the board.right
: Rotate the robot clockwise 90 degress.rock
: Rock out with the robot.
robot-rock left
Rotate the robot counterclockwise 90 degress.
Usage:
$ robot-rock left
robot-rock move
Move the robot forward one square, without falling off the board.
Usage:
$ robot-rock move
robot-rock place
Place the robot on the board.
Type X,Y,F with no spaces, where X is the x-coordinate, Y is the y-coordinate, and F is the direction the robot is facing (NORTH, SOUTH, EAST, or WEST).
Usage:
$ robot-rock place PLACEMENT
Arguments:
PLACEMENT
: [required]
robot-rock report
Report the robot's position on the board.
Usage:
$ robot-rock report
0,1,NORTH
robot-rock right
Rotate the robot-rock clockwise 90 degress.
Usage:
$ robot-rock right
robot-rock rock
Rock out with the robot :robot: :metal:.
Usage:
$ robot-rock rock
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robot_rock-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01430eb8bcdd798e51093d5ef231336d0cb154eb34ab6a6cdd26483ead932822 |
|
MD5 | 4f91c9d51b8f2f0deef9be929dcf2ee2 |
|
BLAKE2b-256 | aadeb4918336c252429d866ee8a15730349e5837b48105bb7cec2ea19b7a3d22 |