Skip to content

Isaac-r-Johnson/toy-placer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

toy-placer

Description: A program that places a "toy" on a graph and allows you to type commands to move and turn it.

Commands include:

  1. place x,y,direction - Command must be type like this!
  2. move
  3. right
  4. left
  5. report

The "place" command places the toy on the graph. The x and y arguments must be between 5 and 0, and the direction has to be either "north", "east", "south", or "west".

The "move" command move the toy one unit in the direction it's facing.

The "right" and "left" commands turn the toy either 90 degress right, or 90 dgrees left.

And finally, the "report" command reports the toy's current position and dirction.

How to use: Download "toy.py" and run in terminal "python toy.py". Make sure your terminal is in the same directory as the downloaded file and you have python installed on your computer.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages