Skip to main content

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

robot-rock requires Python 3.7 or above.

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 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

robot-rock-0.2.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

robot_rock-0.2.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file robot-rock-0.2.3.tar.gz.

File metadata

  • Download URL: robot-rock-0.2.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/20.4.0

File hashes

Hashes for robot-rock-0.2.3.tar.gz
Algorithm Hash digest
SHA256 65a4e6233284314d0ff5f76a822823e8a809c20d2bfe6a07ba1688aef5de16c4
MD5 cea58529966aad8c364e01c478ee17c0
BLAKE2b-256 aa3cfbfbd454b57a62733741e96cb1ea2bb83950abd43dd4f884a8806c32b1b3

See more details on using hashes here.

File details

Details for the file robot_rock-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: robot_rock-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Darwin/20.4.0

File hashes

Hashes for robot_rock-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 557db3126805a71627615220bb3d25aefb923aa8f1c06c1e29077e259dc9cf37
MD5 8e59c67997771e704612caddf7a9210c
BLAKE2b-256 def137d4708282db0e9cd9e7adf669648f1ae56f909cc2a1ca957fdca71ca047

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page