https://github.com/geoffCamp/logo
Logo command interpreter coded in C
https://github.com/geoffCamp/logo
Last synced: 5 months ago
JSON representation
Logo command interpreter coded in C
- Host: GitHub
- URL: https://github.com/geoffCamp/logo
- Owner: geoffCamp
- Created: 2015-03-02T18:24:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T15:20:56.000Z (over 9 years ago)
- Last Synced: 2024-04-24T16:14:51.446Z (12 months ago)
- Language: C
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - logo
README
*******************************************************
Geofferson Camp
Logo Interpreter
Feb 2015
*******************************************************************
Enhancments
************- All angles.
- setxy, print, st, ht, clean************
Compilation
************all:runMe
runMe: drawing.o operate.o maintain.o action.o calc.o memory.o main.o
gcc drawing.o operate.o maintain.o action.o calc.o memory.o main.o -o bin/runMe -lncurses -lm -Iincludedrawing.o: src/drawing.c
gcc -Wall -std=c99 -pedantic -c src/drawing.c -Iincludeoperate.o: src/operate.c
gcc -Wall -std=c99 -pedantic -c src/operate.c -Iincludemaintain.o: src/maintain.c
gcc -Wall -std=c99 -pedantic -c src/maintain.c -Iincludeaction.o: src/action.c
gcc -Wall -std=c99 -pedantic -c src/action.c -Iincludecalc.o: src/calc.c
gcc -Wall -std=c99 -pedantic -c src/calc.c -Iincludememory.o: src/memory.c
gcc -Wall -std=c99 -pedantic -c src/memory.c -Iincludemain.o: src/main.c
gcc -Wall -std=c99 -pedantic -c src/main.c -Iinclude***********************
Running the program(s)
***********************- Enter commands to draw in output space.
- Enter submits commands.*****************
Known Limitations
*****************- Turtle doesn't show at the start.
- Commands can be a maximum of 14 characters.
- Print commands can be a maximum of 8 characters.
- Angles above 720 degrees will crash the program.
- Negative angles will not be accepted.
- Angles with slopes that do not correspond to whole numbers are approximated.
- The size of one magnitude unit will vary depending on the the angle.
- nCurses window is set to 100x100.*****************
Testing Done
*****************- Player unable to draw outside drawing window.
- Invalid command types and formats.*****************
Sources
*****************- nCurses functions referenced from linux.die.net/man
- nCurses colour features referenced from tldp.org/HOWTO/NCURSES-Programming-HOWTO/color.html
- Logo Interpreter referenced from www.calormen.com/jslogo