Skip to main content

No project description provided

Project description

BlaBlaMower

This project is for respond to the BlaBlaCar technical test that they have asked me to work on. The specifications are on this file specs/BlaBlaCar_Technical Test.md

Program for mowing a rectangular lawn surface with multiple mowers.

CHANGELOG

Installation

pip and python3.8+ is required

pypi

$> pip install blablamower

Release

$> wget https://github.com/renardguill/BlaBlaMower/releases/download/v1.0.0/blablamower-1.0.0-py3-none-any.whl
$> pip install blablamower-1.0.0-py3-none-any.whl

Source code

poetry is needed

$> git clone https://github.com/renardguill/BlaBlaMower.git
$> cd BlaBlaMower
$> poetry build
$> pip install dist/blablamower-1.0.0-py3-none-any.whl

Update

pypi

$> pip install blablamower --upgrade

Usage

The program expect an input file constructed in the following manner: :

The first line corresponds to the upper right corner of the lawn. The bottom left corner is implicitly (0, 0). The rest of the file describes the multiple mowers that are on the lawn. Each mower is described on two lines: The first line contains the mower's starting position and orientation in the format "X Y O". X and Y are the coordinates and O is the orientation. The second line contains the instructions for the mower to navigate the lawn. The instructions are not separated by spaces.

exemple :

5 5
1 2 N
LFLFLFLFF
3 3 E
FFRFFRFRRF
$> blablamower ./inputfile.txt

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

BlaBlaMower-1.0.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

blablamower-1.0.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

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